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 #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 } |
OLD | NEW |