Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_ | |
| 6 #define NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_ | |
| 7 | |
| 8 #include "testing/gmock/include/gmock/gmock.h" // IWYU pragma: export | |
| 9 #include "testing/gtest/include/gtest/gtest.h" // IWYU pragma: export | |
| 10 | |
| 11 // When constructed, checks that all QUIC flags have their correct default | |
| 12 // values and when destructed, restores those values. | |
| 13 class QuicFlagSaver { | |
| 14 public: | |
| 15 QuicFlagSaver(); | |
|
Fan Yang
2017/05/01 14:53:38
I did not see the definitions (as you removed from
Ryan Hamilton
2017/05/01 16:46:30
Good point! I forgot to upload the .cc file :(
Do
| |
| 16 ~QuicFlagSaver(); | |
| 17 }; | |
| 18 | |
| 19 class QuicTestImpl : public ::testing::Test { | |
| 20 private: | |
| 21 QuicFlagSaver flags_; // Save/restore all QUIC flag values. | |
| 22 }; | |
| 23 | |
| 24 template <class T> | |
| 25 class QuicTestWithParamImpl : public ::testing::TestWithParam<T> { | |
| 26 private: | |
| 27 QuicFlagSaver flags_; // Save/restore all QUIC flag values. | |
| 28 }; | |
| 29 | |
| 30 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_ | |
| OLD | NEW |