Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
0acdf796
Commit
0acdf796
authored
Jul 12, 2018
by
Adrian Moran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid full test in no exceptions are enabled.
Signed-off-by:
Adrian Moran
<
amoran@ikerlan.es
>
parent
a5190506
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
gmock_ex_test.cc
googlemock/test/gmock_ex_test.cc
+2
-5
No files found.
googlemock/test/gmock_ex_test.cc
View file @
0acdf796
...
...
@@ -31,15 +31,14 @@
// Tests Google Mock's functionality that depends on exceptions.
#if GTEST_HAS_EXCEPTIONS
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace
{
using
testing
::
HasSubstr
;
#if GTEST_HAS_EXCEPTIONS
using
testing
::
internal
::
GoogleTestFailureException
;
#endif
// A type that cannot be default constructed.
class
NonDefaultConstructible
{
...
...
@@ -54,7 +53,6 @@ class MockFoo {
MOCK_METHOD0
(
GetNonDefaultConstructible
,
NonDefaultConstructible
());
};
#if GTEST_HAS_EXCEPTIONS
TEST
(
DefaultValueTest
,
ThrowsRuntimeErrorWhenNoDefaultValue
)
{
MockFoo
mock
;
...
...
@@ -78,6 +76,5 @@ TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) {
}
}
#endif
}
// unnamed namespace
#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