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

Unified Diff: net/quic/chromium/quic_test_packet_maker.cc

Issue 2565563002: Move various Chromium QUIC files to net/quic/chromium where they belong (Closed)
Patch Set: Created 4 years 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/chromium/quic_test_packet_maker.h ('k') | net/quic/core/quic_crypto_client_stream_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_test_packet_maker.cc
diff --git a/net/quic/test_tools/quic_test_packet_maker.cc b/net/quic/chromium/quic_test_packet_maker.cc
similarity index 98%
rename from net/quic/test_tools/quic_test_packet_maker.cc
rename to net/quic/chromium/quic_test_packet_maker.cc
index f865171a6b6d397ba81ceab37425be9bfe52d18b..ac82f5b4b4376d3631228c7ea9deea61b6ed0d29 100644
--- a/net/quic/test_tools/quic_test_packet_maker.cc
+++ b/net/quic/chromium/quic_test_packet_maker.cc
@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "net/quic/test_tools/quic_test_packet_maker.h"
+#include "net/quic/chromium/quic_test_packet_maker.h"
#include <list>
#include <utility>
#include "base/memory/ptr_util.h"
+#include "net/quic/chromium/quic_http_utils.h"
#include "net/quic/core/quic_framer.h"
-#include "net/quic/core/quic_http_utils.h"
#include "net/quic/core/quic_utils.h"
#include "net/quic/test_tools/quic_test_utils.h"
-
namespace net {
namespace test {
@@ -650,13 +649,10 @@ std::unique_ptr<QuicReceivedPacket> QuicTestPacketMaker::MakeSettingsPacket(
StringPiece(spdy_frame.data(), spdy_frame.size()));
*offset += spdy_frame.size();
return MakePacket(header_, QuicFrame(&quic_frame));
- } else {
- QuicStreamFrame quic_frame(
- kHeadersStreamId, false, 0,
- StringPiece(spdy_frame.data(), spdy_frame.size()));
- LOG(INFO) << "quic_frame: " << quic_frame;
- return MakePacket(header_, QuicFrame(&quic_frame));
}
+ QuicStreamFrame quic_frame(kHeadersStreamId, false, 0,
+ StringPiece(spdy_frame.data(), spdy_frame.size()));
+ return MakePacket(header_, QuicFrame(&quic_frame));
}
} // namespace test
« no previous file with comments | « net/quic/chromium/quic_test_packet_maker.h ('k') | net/quic/core/quic_crypto_client_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698