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

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

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/impl/quic_test_impl.h ('k') | net/quic/quartc/quartc_session_test.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 #include "net/quic/platform/impl/quic_test_impl.h"
6
7 #include "base/logging.h"
8 #include "net/quic/platform/api/quic_flags.h"
9
10 QuicFlagSaver::QuicFlagSaver() {
11 #define QUIC_FLAG(type, flag, value) \
12 CHECK_EQ(value, flag) \
13 << "Flag set to an unexpected value. A prior test is likely " \
14 << "setting a flag without using a QuicFlagSaver";
15 #include "net/quic/core/quic_flags_list.h"
16 #undef QUIC_FLAG
17 }
18
19 QuicFlagSaver::~QuicFlagSaver() {
20 #define QUIC_FLAG(type, flag, value) flag = value;
21 #include "net/quic/core/quic_flags_list.h"
22 #undef QUIC_FLAG
23 }
OLDNEW
« no previous file with comments | « net/quic/platform/impl/quic_test_impl.h ('k') | net/quic/quartc/quartc_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698