Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: net/quic/platform/impl/quic_test_impl.h

Issue 2848203002: Add a platform implementation of QuicTest and QuicTestWithParam (Closed)
Patch Set: net/quic/platform/impl/quic_test_impl.cc Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/platform/api/quic_url_test.cc ('k') | net/quic/platform/impl/quic_test_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « net/quic/platform/api/quic_url_test.cc ('k') | net/quic/platform/impl/quic_test_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698