Merge branch 'master' into list_tests_with_location
This commit is contained in:
commit
6e1494a462
|
@ -34,6 +34,7 @@
|
||||||
#include "gmock/gmock.h"
|
#include "gmock/gmock.h"
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
|
||||||
|
#if GTEST_HAS_EXCEPTIONS
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
using testing::HasSubstr;
|
using testing::HasSubstr;
|
||||||
|
@ -52,7 +53,6 @@ class MockFoo {
|
||||||
MOCK_METHOD0(GetNonDefaultConstructible, NonDefaultConstructible());
|
MOCK_METHOD0(GetNonDefaultConstructible, NonDefaultConstructible());
|
||||||
};
|
};
|
||||||
|
|
||||||
#if GTEST_HAS_EXCEPTIONS
|
|
||||||
|
|
||||||
TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) {
|
TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) {
|
||||||
MockFoo mock;
|
MockFoo mock;
|
||||||
|
@ -76,6 +76,5 @@ TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // unnamed namespace
|
} // unnamed namespace
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user