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

Unified Diff: net/tools/quic/test_tools/quic_test_server.cc

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 years, 2 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/test_tools/quic_test_server.h ('k') | net/tools/quic/test_tools/server_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_server.cc
diff --git a/net/tools/quic/test_tools/quic_test_server.cc b/net/tools/quic/test_tools/quic_test_server.cc
index 936794b5fd33f3e69ecfe97e5351fdf788ff27be..35bc3d49e0e4cb63535ea5b5dc32667c80e963ea 100644
--- a/net/tools/quic/test_tools/quic_test_server.cc
+++ b/net/tools/quic/test_tools/quic_test_server.cc
@@ -61,10 +61,9 @@ class QuicTestDispatcher : public QuicDispatcher {
if (session_creator_ == nullptr && stream_creator_ == nullptr) {
return QuicDispatcher::CreateQuicSession(id, client);
}
- QuicConnection* connection =
- new QuicConnection(id, client, helper(), connection_writer_factory(),
- /* owns_writer= */ true, Perspective::IS_SERVER,
- /* is_secure */ true, supported_versions());
+ QuicConnection* connection = new QuicConnection(
+ id, client, helper(), connection_writer_factory(),
+ /* owns_writer= */ true, Perspective::IS_SERVER, supported_versions());
QuicServerSession* session = nullptr;
if (stream_creator_ != nullptr) {
@@ -106,11 +105,13 @@ class QuicTestDispatcher : public QuicDispatcher {
QuicTestServer::StreamCreationFunction stream_creator_;
};
-QuicTestServer::QuicTestServer() : QuicServer() {}
+QuicTestServer::QuicTestServer(ProofSource* proof_source)
+ : QuicServer(proof_source) {}
-QuicTestServer::QuicTestServer(const QuicConfig& config,
+QuicTestServer::QuicTestServer(ProofSource* proof_source,
+ const QuicConfig& config,
const QuicVersionVector& supported_versions)
- : QuicServer(config, supported_versions) {}
+ : QuicServer(proof_source, config, supported_versions) {}
QuicDispatcher* QuicTestServer::CreateQuicDispatcher() {
return new QuicTestDispatcher(
« no previous file with comments | « net/tools/quic/test_tools/quic_test_server.h ('k') | net/tools/quic/test_tools/server_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698