Googletest export

Prefer using over typedef.

PiperOrigin-RevId: 337080404
This commit is contained in:
Abseil Team 2020-10-14 09:48:24 -04:00 committed by Derek Mauro
parent fb239f0e4c
commit b2cb220eb7

View File

@ -1538,7 +1538,7 @@ template <typename T>
class FooTest : public ::testing::Test {
public:
...
typedef std::list<T> List;
using List = std::list<T>;
static T shared_;
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.
```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);
```