Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
bbd6e105
Commit
bbd6e105
authored
Sep 18, 2009
by
zhanyong.wan
Browse files
Picks up gtest r314.
parent
93244dc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/gmock-internal-utils.cc
src/gmock-internal-utils.cc
+6
-2
test/gmock-spec-builders_test.cc
test/gmock-spec-builders_test.cc
+1
-1
No files found.
src/gmock-internal-utils.cc
View file @
bbd6e105
...
...
@@ -77,8 +77,12 @@ class GoogleTestFailureReporter : public FailureReporterInterface {
public:
virtual
void
ReportFailure
(
FailureType
type
,
const
char
*
file
,
int
line
,
const
string
&
message
)
{
AssertHelper
(
type
==
FATAL
?
TPRT_FATAL_FAILURE
:
TPRT_NONFATAL_FAILURE
,
file
,
line
,
message
.
c_str
())
=
Message
();
AssertHelper
(
type
==
FATAL
?
TestPartResult
::
kFatalFailure
:
TestPartResult
::
kNonFatalFailure
,
file
,
line
,
message
.
c_str
())
=
Message
();
if
(
type
==
FATAL
)
{
posix
::
Abort
();
}
...
...
test/gmock-spec-builders_test.cc
View file @
bbd6e105
...
...
@@ -985,7 +985,7 @@ TEST(UnexpectedCallTest, UnsatisifiedPrerequisites) {
// There should be one non-fatal failure.
ASSERT_EQ
(
1
,
failures
.
size
());
const
::
testing
::
TestPartResult
&
r
=
failures
.
GetTestPartResult
(
0
);
EXPECT_EQ
(
::
testing
::
T
PRT_NONFATAL_FAILURE
,
r
.
type
());
EXPECT_EQ
(
::
testing
::
T
estPartResult
::
kNonFatalFailure
,
r
.
type
());
// Verifies that the failure message contains the two unsatisfied
// pre-requisites but not the satisfied one.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment