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

Unified Diff: components/cronet/android/test/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 | « no previous file | net/http/disk_cache_based_quic_server_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/test/quic_test_server.cc
diff --git a/components/cronet/android/test/quic_test_server.cc b/components/cronet/android/test/quic_test_server.cc
index 4738720f7c105b8f28f840e6eabf5147afbacfa8..dcb70dc91e391875ee1f438c118b48a389cd988b 100644
--- a/components/cronet/android/test/quic_test_server.cc
+++ b/components/cronet/android/test/quic_test_server.cc
@@ -41,19 +41,18 @@ void StartOnServerThread(const base::FilePath& test_files_root) {
net::IPAddressNumber ip;
net::ParseIPLiteralToNumber(kServerHost, &ip);
net::QuicConfig config;
- g_quic_server =
- new net::tools::QuicSimpleServer(config, net::QuicSupportedVersions());
// Set up server certs.
base::FilePath directory;
CHECK(base::android::GetExternalStorageDirectory(&directory));
directory = directory.Append("net/data/ssl/certificates");
+ // TODO(xunjieli): Use scoped_ptr when crbug.com/545474 is fixed.
net::ProofSourceChromium* proof_source = new net::ProofSourceChromium();
CHECK(proof_source->Initialize(
directory.Append("quic_test.example.com.crt"),
directory.Append("quic_test.example.com.key.pkcs8")));
- // TODO(xunjieli): Use scoped_ptr when crbug.com/545474 is fixed.
- g_quic_server->SetProofSource(proof_source);
+ g_quic_server = new net::tools::QuicSimpleServer(
+ proof_source, config, net::QuicSupportedVersions());
// Start listening.
int rv = g_quic_server->Listen(net::IPEndPoint(ip, kServerPort));
« no previous file with comments | « no previous file | net/http/disk_cache_based_quic_server_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698