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

Unified Diff: net/tools/quic/quic_simple_server_test.cc

Issue 1036023002: Move remaining QUIC server files from net/quic/ to net/tools/quic/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correctly fix cronet Created 5 years, 9 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/tools/quic/quic_simple_server_packet_writer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_test.cc
diff --git a/net/quic/quic_server_test.cc b/net/tools/quic/quic_simple_server_test.cc
similarity index 90%
copy from net/quic/quic_server_test.cc
copy to net/tools/quic/quic_simple_server_test.cc
index cac66b63b39ae35d9e3021f884e99d5148c55b2d..e9d00f73af4db36632264f826f09a56388e50d4a 100644
--- a/net/quic/quic_server_test.cc
+++ b/net/tools/quic/quic_simple_server_test.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "net/quic/quic_server.h"
+#include "net/tools/quic/quic_simple_server.h"
#include "net/quic/crypto/quic_random.h"
#include "net/quic/quic_utils.h"
@@ -13,10 +13,9 @@
using ::testing::_;
namespace net {
+namespace tools {
namespace test {
-namespace {
-
// TODO(dmz) Remove "Chrome" part of name once net/tools/quic is deleted.
class QuicChromeServerDispatchPacketTest : public ::testing::Test {
public:
@@ -25,7 +24,7 @@ class QuicChromeServerDispatchPacketTest : public ::testing::Test {
dispatcher_(config_,
crypto_config_,
new tools::QuicDispatcher::DefaultPacketWriterFactory(),
- new MockHelper) {
+ new net::test::MockHelper) {
dispatcher_.InitializeWithWriter(nullptr);
}
@@ -37,7 +36,7 @@ class QuicChromeServerDispatchPacketTest : public ::testing::Test {
protected:
QuicConfig config_;
QuicCryptoServerConfig crypto_config_;
- MockQuicDispatcher dispatcher_;
+ net::test::MockQuicDispatcher dispatcher_;
};
TEST_F(QuicChromeServerDispatchPacketTest, DispatchPacket) {
@@ -59,6 +58,6 @@ TEST_F(QuicChromeServerDispatchPacketTest, DispatchPacket) {
DispatchPacket(encrypted_valid_packet);
}
-} // namespace
+} // namespace tools
} // namespace test
} // namespace net
« no previous file with comments | « net/tools/quic/quic_simple_server_packet_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698