"git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "1c09831acc69d6d77af5d5aa45feee6f52dc1a76"
Commit bea3d619 authored by 1camper's avatar 1camper Committed by Gennadiy Civil
Browse files

Merge d830440d48a9502161448bc78be33a53388dd1f4 into f5260ae7

Closes #1830

PiperOrigin-RevId: 215563532
parent f5260ae7
...@@ -1815,11 +1815,8 @@ class WithParamInterface { ...@@ -1815,11 +1815,8 @@ class WithParamInterface {
virtual ~WithParamInterface() {} virtual ~WithParamInterface() {}
// The current parameter value. Is also available in the test fixture's // The current parameter value. Is also available in the test fixture's
// constructor. This member function is non-static, even though it only // constructor.
// references static data, to reduce the opportunity for incorrect uses static const ParamType& GetParam() {
// like writing 'WithParamInterface<bool>::GetParam()' for a test that
// uses a fixture whose parameter type is int.
const ParamType& GetParam() const {
GTEST_CHECK_(parameter_ != NULL) GTEST_CHECK_(parameter_ != NULL)
<< "GetParam() can only be called inside a value-parameterized test " << "GetParam() can only be called inside a value-parameterized test "
<< "-- did you intend to write TEST_P instead of TEST_F?"; << "-- did you intend to write TEST_P instead of TEST_F?";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment