Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
ad52f7d0
Commit
ad52f7d0
authored
Jul 17, 2019
by
Gennadiy Civil
Browse files
Merge branch 'master' of github.com:google/googletest
parents
63e878b6
0ef404e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
googlemock/include/gmock/gmock-spec-builders.h
googlemock/include/gmock/gmock-spec-builders.h
+1
-0
googlemock/test/gmock_output_test.py
googlemock/test/gmock_output_test.py
+3
-1
No files found.
googlemock/include/gmock/gmock-spec-builders.h
View file @
ad52f7d0
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_
#include <functional>
#include <map>
#include <map>
#include <memory>
#include <memory>
#include <set>
#include <set>
...
...
googlemock/test/gmock_output_test.py
View file @
ad52f7d0
...
@@ -39,6 +39,7 @@ gmock_output_test.py
...
@@ -39,6 +39,7 @@ gmock_output_test.py
"""
"""
from
io
import
open
# pylint: disable=redefined-builtin, g-importing-member
import
os
import
os
import
re
import
re
import
sys
import
sys
...
@@ -152,10 +153,11 @@ def GetNormalizedCommandOutputAndLeakyTests(cmd):
...
@@ -152,10 +153,11 @@ def GetNormalizedCommandOutputAndLeakyTests(cmd):
class
GMockOutputTest
(
gmock_test_utils
.
TestCase
):
class
GMockOutputTest
(
gmock_test_utils
.
TestCase
):
def
testOutput
(
self
):
def
testOutput
(
self
):
(
output
,
leaky_tests
)
=
GetNormalizedCommandOutputAndLeakyTests
(
COMMAND
)
(
output
,
leaky_tests
)
=
GetNormalizedCommandOutputAndLeakyTests
(
COMMAND
)
golden_file
=
open
(
GOLDEN_PATH
,
'rb'
)
golden_file
=
open
(
GOLDEN_PATH
,
'rb'
)
golden
=
golden_file
.
read
()
golden
=
golden_file
.
read
()
.
decode
(
'utf-8'
)
golden_file
.
close
()
golden_file
.
close
()
# The normalized output should match the golden file.
# The normalized output should match the golden file.
...
...
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