Change tabs to spaces in test case

This commit is contained in:
Maurice Gilden 2017-08-18 15:27:02 +02:00
parent 36777251c0
commit b0ed43e724

View File

@ -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
} }