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
50ec6ee3
Commit
50ec6ee3
authored
Oct 04, 2018
by
Jerry Turcios
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/google/googletest
parents
9f8512d7
bea3d619
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
gtest.h
googletest/include/gtest/gtest.h
+2
-5
No files found.
googletest/include/gtest/gtest.h
View file @
50ec6ee3
...
...
@@ -1815,11 +1815,8 @@ class WithParamInterface {
virtual
~
WithParamInterface
()
{}
// The current parameter value. Is also available in the test fixture's
// constructor. This member function is non-static, even though it only
// references static data, to reduce the opportunity for incorrect uses
// like writing 'WithParamInterface<bool>::GetParam()' for a test that
// uses a fixture whose parameter type is int.
const
ParamType
&
GetParam
()
const
{
// constructor.
static
const
ParamType
&
GetParam
()
{
GTEST_CHECK_
(
parameter_
!=
NULL
)
<<
"GetParam() can only be called inside a value-parameterized test "
<<
"-- did you intend to write TEST_P instead of TEST_F?"
;
...
...
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