Commit b2cb220e authored by Abseil Team's avatar Abseil Team Committed by Derek Mauro
Browse files

Googletest export

Prefer using over typedef.

PiperOrigin-RevId: 337080404
parent fb239f0e
...@@ -1538,7 +1538,7 @@ template <typename T> ...@@ -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++ ...@@ -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);
``` ```
......
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