diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-08-08 12:19:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 12:19:04 -0700 |
commit | 11f5a2740aa8a55d620fba6957e53ad08721cf54 (patch) | |
tree | 04f982e6158e57f68529ca47e37ec377574647dd /googlemock/test/gmock_ex_test.cc | |
parent | 008e54c1dd407b6edd680fccf78cd194365e0507 (diff) | |
parent | 66bd580b5bc054522f7fab13463a47aa156a2d4b (diff) | |
download | googletest-11f5a2740aa8a55d620fba6957e53ad08721cf54.tar.gz googletest-11f5a2740aa8a55d620fba6957e53ad08721cf54.tar.bz2 googletest-11f5a2740aa8a55d620fba6957e53ad08721cf54.zip |
Merge branch 'master' into cross-testing-patch-1
Diffstat (limited to 'googlemock/test/gmock_ex_test.cc')
-rw-r--r-- | googlemock/test/gmock_ex_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googlemock/test/gmock_ex_test.cc b/googlemock/test/gmock_ex_test.cc index 3afed86a..b03de82e 100644 --- a/googlemock/test/gmock_ex_test.cc +++ b/googlemock/test/gmock_ex_test.cc @@ -34,9 +34,11 @@ #include "gmock/gmock.h" #include "gtest/gtest.h" +#if GTEST_HAS_EXCEPTIONS namespace { using testing::HasSubstr; + using testing::internal::GoogleTestFailureException; // A type that cannot be default constructed. @@ -52,8 +54,6 @@ class MockFoo { MOCK_METHOD0(GetNonDefaultConstructible, NonDefaultConstructible()); }; -#if GTEST_HAS_EXCEPTIONS - TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) { MockFoo mock; try { @@ -76,6 +76,6 @@ TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) { } } -#endif } // unnamed namespace +#endif |