mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
Googletest export
Prefer using over typedef. PiperOrigin-RevId: 337080404
This commit is contained in:
parent
fb239f0e4c
commit
b2cb220eb7
@ -1538,7 +1538,7 @@ template <typename T>
|
|||||||
class FooTest : public ::testing::Test {
|
class FooTest : public ::testing::Test {
|
||||||
public:
|
public:
|
||||||
...
|
...
|
||||||
typedef std::list<T> List;
|
using List = std::list<T>;
|
||||||
static T shared_;
|
static T shared_;
|
||||||
T value_;
|
T value_;
|
||||||
};
|
};
|
||||||
@ -1642,7 +1642,7 @@ put the above code in a header file, you can `#include` it in multiple C++
|
|||||||
source files and instantiate it multiple times.
|
source files and instantiate it multiple times.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
typedef ::testing::Types<char, int, unsigned int> MyTypes;
|
using MyTypes = ::testing::Types<char, int, unsigned int>;
|
||||||
INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes);
|
INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user