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
96c851d0
Commit
96c851d0
authored
Jul 09, 2019
by
Krystian Kuzniarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust a comment to the similar section in advanced.md
in addition, fix typo of use -> us
parent
437e1008
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
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 @
96c851d0
...
@@ -65,9 +65,9 @@ TYPED_TEST_SUITE(FooTest, MyTypes);
...
@@ -65,9 +65,9 @@ TYPED_TEST_SUITE(FooTest, MyTypes);
// Then, use TYPED_TEST() instead of TEST_F() to define as many typed
// Then, use TYPED_TEST() instead of TEST_F() to define as many typed
// tests for this test suite as you want.
// tests for this test suite as you want.
TYPED_TEST(FooTest, DoesBlah) {
TYPED_TEST(FooTest, DoesBlah) {
// Inside a test, refer to
TypeParam to get the type parameter.
// Inside a test, refer to
the special name TypeParam to get the type
//
Since we are inside a derived class template, C++ requires use to
//
parameter. Since we are inside a derived class template, C++ requires
// visit the members of FooTest via 'this'.
//
us to
visit the members of FooTest via 'this'.
TypeParam n = this->value_;
TypeParam n = this->value_;
// To visit static members of the fixture, add the TestFixture::
// 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