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
b0ed43e7
Commit
b0ed43e7
authored
Aug 18, 2017
by
Maurice Gilden
Browse files
Change tabs to spaces in test case
parent
36777251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
googlemock/test/gmock-nice-strict_test.cc
googlemock/test/gmock-nice-strict_test.cc
+11
-11
No files found.
googlemock/test/gmock-nice-strict_test.cc
View file @
b0ed43e7
...
@@ -218,19 +218,19 @@ TEST(NiceMockTest, AllowsExpectedCall) {
...
@@ -218,19 +218,19 @@ TEST(NiceMockTest, AllowsExpectedCall) {
// default value throws an exception and the exception contains the name of
// default value throws an exception and the exception contains the name of
// the method.
// the method.
TEST
(
NiceMockTest
,
ThrowsExceptionForUnknownReturnTypes
)
{
TEST
(
NiceMockTest
,
ThrowsExceptionForUnknownReturnTypes
)
{
NiceMock
<
MockFoo
>
nice_foo
;
NiceMock
<
MockFoo
>
nice_foo
;
#if GTEST_HAS_EXCEPTIONS
#if GTEST_HAS_EXCEPTIONS
try
{
try
{
nice_foo
.
ReturnSomething
();
nice_foo
.
ReturnSomething
();
FAIL
();
FAIL
();
}
catch
(
const
std
::
runtime_error
&
ex
)
{
}
catch
(
const
std
::
runtime_error
&
ex
)
{
const
std
::
string
exception_msg
(
ex
.
what
());
const
std
::
string
exception_msg
(
ex
.
what
());
EXPECT_NE
(
exception_msg
.
find
(
"ReturnSomething"
),
std
::
string
::
npos
);
EXPECT_NE
(
exception_msg
.
find
(
"ReturnSomething"
),
std
::
string
::
npos
);
}
}
#else
#else
EXPECT_DEATH_IF_SUPPORTED
({
EXPECT_DEATH_IF_SUPPORTED
({
nice_foo
.
ReturnSomething
();
nice_foo
.
ReturnSomething
();
},
""
);
},
""
);
#endif
#endif
}
}
...
...
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