Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
4e29e488
Commit
4e29e488
authored
Aug 02, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2358 from kuzkry:adjustment-of-similar-comments
PiperOrigin-RevId: 261355792
parents
6c7a8bec
96c851d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
googletest/include/gtest/gtest-typed-test.h
googletest/include/gtest/gtest-typed-test.h
+3
-3
No files found.
googletest/include/gtest/gtest-typed-test.h
View file @
4e29e488
...
...
@@ -65,9 +65,9 @@ TYPED_TEST_SUITE(FooTest, MyTypes);
// Then, use TYPED_TEST() instead of TEST_F() to define as many typed
// tests for this test suite as you want.
TYPED_TEST(FooTest, DoesBlah) {
// Inside a test, refer to TypeParam to get the type
parameter.
// Since we are inside a derived class template, C++ requires
use to
// visit the members of FooTest via 'this'.
// Inside a test, refer to
the special name
TypeParam to get the type
//
parameter.
Since we are inside a derived class template, C++ requires
//
us to
visit the members of FooTest via 'this'.
TypeParam n = this->value_;
// To visit static members of the fixture, add the TestFixture::
...
...
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