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(); |
| 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 |