Index: net/quic/platform/impl/quic_test_impl.h |
diff --git a/net/quic/platform/impl/quic_test_impl.h b/net/quic/platform/impl/quic_test_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6be16527516fba05581598052c69e7a18e55d262 |
--- /dev/null |
+++ b/net/quic/platform/impl/quic_test_impl.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_ |
+#define NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_ |
+ |
+#include "testing/gmock/include/gmock/gmock.h" // IWYU pragma: export |
+#include "testing/gtest/include/gtest/gtest.h" // IWYU pragma: export |
+ |
+// When constructed, checks that all QUIC flags have their correct default |
+// values and when destructed, restores those values. |
+class QuicFlagSaver { |
+ public: |
+ QuicFlagSaver(); |
+ ~QuicFlagSaver(); |
+}; |
+ |
+class QuicTestImpl : public ::testing::Test { |
+ private: |
+ QuicFlagSaver flags_; // Save/restore all QUIC flag values. |
+}; |
+ |
+template <class T> |
+class QuicTestWithParamImpl : public ::testing::TestWithParam<T> { |
+ private: |
+ QuicFlagSaver flags_; // Save/restore all QUIC flag values. |
+}; |
+ |
+#endif // NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_ |