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

Unified Diff: net/quic/test_tools/quic_test_utils.cc

Issue 2820423002: Move quic_flags.h from net/quic/core to net/quic/platform and split into api and impl. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_utils.cc
diff --git a/net/quic/test_tools/quic_test_utils.cc b/net/quic/test_tools/quic_test_utils.cc
index b2c5454e88e1076eab4f00731dbf6c2098a24f0b..cc61ffb090f929195745091b6e564fbca20d8f59 100644
--- a/net/quic/test_tools/quic_test_utils.cc
+++ b/net/quic/test_tools/quic_test_utils.cc
@@ -14,11 +14,11 @@
#include "net/quic/core/crypto/quic_decrypter.h"
#include "net/quic/core/crypto/quic_encrypter.h"
#include "net/quic/core/quic_data_writer.h"
-#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_framer.h"
#include "net/quic/core/quic_packet_creator.h"
#include "net/quic/core/quic_utils.h"
#include "net/quic/platform/api/quic_endian.h"
+#include "net/quic/platform/api/quic_flags.h"
#include "net/quic/platform/api/quic_logging.h"
#include "net/quic/platform/api/quic_ptr_util.h"
#include "net/quic/test_tools/crypto_test_utils.h"
@@ -84,7 +84,7 @@ QuicPacket* BuildUnsizedDataPacket(QuicFramer* framer,
QuicFlagSaver::QuicFlagSaver() {
#define QUIC_FLAG(type, flag, value) \
- CHECK_EQ(value, base::GetFlag(flag)) \
+ CHECK_EQ(value, GetQuicFlag(flag) ) \
<< "Flag set to an unexpected value. A prior test is likely " \
<< "setting a flag without using a QuicFlagSaver";
#include "net/quic/core/quic_flags_list.h"
@@ -92,7 +92,7 @@ QuicFlagSaver::QuicFlagSaver() {
}
QuicFlagSaver::~QuicFlagSaver() {
-#define QUIC_FLAG(type, flag, value) base::SetFlag(&flag, value);
+#define QUIC_FLAG(type, flag, value) SetQuicFlag(&flag, value);
#include "net/quic/core/quic_flags_list.h"
#undef QUIC_FLAG
}
« no previous file with comments | « net/quic/test_tools/quic_stream_sequencer_buffer_peer.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698