@@ -48,15 +48,15 @@ template <typename T>
|
48 | 48 | class FooTest : public testing::Test { |
49 | 49 | public: |
50 | 50 | ... |
51 | | -typedef std::list<T> List; |
| 51 | +using List = ::std::list<T>; |
52 | 52 | static T shared_; |
53 | 53 | T value_; |
54 | 54 | }; |
55 | 55 | |
56 | 56 | // Next, associate a list of types with the test suite, which will be |
57 | | -// repeated for each type in the list. The typedef is necessary for |
| 57 | +// repeated for each type in the list. The using-declaration is necessary for |
58 | 58 | // the macro to parse correctly. |
59 | | -typedef testing::Types<char, int, unsigned int> MyTypes; |
| 59 | +using MyTypes = ::testing::Types<char, int, unsigned int>; |
60 | 60 | TYPED_TEST_SUITE(FooTest, MyTypes); |
61 | 61 | |
62 | 62 | // If the type list contains only one type, you can write that type |
@@ -157,7 +157,7 @@ REGISTER_TYPED_TEST_SUITE_P(FooTest,
|
157 | 157 | // argument to the INSTANTIATE_* macro is a prefix that will be added |
158 | 158 | // to the actual test suite name. Remember to pick unique prefixes for |
159 | 159 | // different instances. |
160 | | -typedef testing::Types<char, int, unsigned int> MyTypes; |
| 160 | +using MyTypes = ::testing::Types<char, int, unsigned int>; |
161 | 161 | INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes); |
162 | 162 | |
163 | 163 | // If the type list contains only one type, you can write that type |
|