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
39803f3c
Commit
39803f3c
authored
Nov 26, 2019
by
Gennadiy Rozental
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2593 from kuzkry:remove-workaround_msvc-namespace-scope-from-nested-class
PiperOrigin-RevId: 282593823
parents
0361bdf5
21d276b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
gmock-matchers_test.cc
googlemock/test/gmock-matchers_test.cc
+4
-9
No files found.
googlemock/test/gmock-matchers_test.cc
View file @
39803f3c
...
@@ -2988,18 +2988,13 @@ TEST(MatcherAssertionTest, WorksWhenMatcherIsNotSatisfied) {
...
@@ -2988,18 +2988,13 @@ TEST(MatcherAssertionTest, WorksWhenMatcherIsNotSatisfied) {
static
unsigned
short
n
;
// NOLINT
static
unsigned
short
n
;
// NOLINT
n
=
5
;
n
=
5
;
// VC++ prior to version 8.0 SP1 has a bug where it will not see any
EXPECT_FATAL_FAILURE
(
ASSERT_THAT
(
n
,
Gt
(
10
)),
// functions declared in the namespace scope from within nested classes.
// EXPECT/ASSERT_(NON)FATAL_FAILURE macros use nested classes so that all
// namespace-level functions invoked inside them need to be explicitly
// resolved.
EXPECT_FATAL_FAILURE
(
ASSERT_THAT
(
n
,
::
testing
::
Gt
(
10
)),
"Value of: n
\n
"
"Value of: n
\n
"
"Expected: is > 10
\n
"
"Expected: is > 10
\n
"
" Actual: 5"
+
OfType
(
"unsigned short"
));
" Actual: 5"
+
OfType
(
"unsigned short"
));
n
=
0
;
n
=
0
;
EXPECT_NONFATAL_FAILURE
(
EXPECT_NONFATAL_FAILURE
(
EXPECT_THAT
(
n
,
::
testing
::
AllOf
(
::
testing
::
Le
(
7
),
::
testing
::
Ge
(
5
))),
EXPECT_THAT
(
n
,
AllOf
(
Le
(
7
),
Ge
(
5
))),
"Value of: n
\n
"
"Value of: n
\n
"
"Expected: (is <= 7) and (is >= 5)
\n
"
"Expected: (is <= 7) and (is >= 5)
\n
"
" Actual: 0"
+
OfType
(
"unsigned short"
));
" Actual: 0"
+
OfType
(
"unsigned short"
));
...
@@ -3013,11 +3008,11 @@ TEST(MatcherAssertionTest, WorksForByRefArguments) {
...
@@ -3013,11 +3008,11 @@ TEST(MatcherAssertionTest, WorksForByRefArguments) {
static
int
n
;
static
int
n
;
n
=
0
;
n
=
0
;
EXPECT_THAT
(
n
,
AllOf
(
Le
(
7
),
Ref
(
n
)));
EXPECT_THAT
(
n
,
AllOf
(
Le
(
7
),
Ref
(
n
)));
EXPECT_FATAL_FAILURE
(
ASSERT_THAT
(
n
,
::
testing
::
Not
(
::
testing
::
Ref
(
n
))),
EXPECT_FATAL_FAILURE
(
ASSERT_THAT
(
n
,
Not
(
Ref
(
n
))),
"Value of: n
\n
"
"Value of: n
\n
"
"Expected: does not reference the variable @"
);
"Expected: does not reference the variable @"
);
// Tests the "Actual" part.
// Tests the "Actual" part.
EXPECT_FATAL_FAILURE
(
ASSERT_THAT
(
n
,
::
testing
::
Not
(
::
testing
::
Ref
(
n
))),
EXPECT_FATAL_FAILURE
(
ASSERT_THAT
(
n
,
Not
(
Ref
(
n
))),
"Actual: 0"
+
OfType
(
"int"
)
+
", which is located @"
);
"Actual: 0"
+
OfType
(
"int"
)
+
", which is located @"
);
}
}
...
...
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