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
ad52f7d0
Commit
ad52f7d0
authored
Jul 17, 2019
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:google/googletest
parents
63e878b6
0ef404e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
gmock-spec-builders.h
googlemock/include/gmock/gmock-spec-builders.h
+1
-0
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