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

Unified Diff: components/cronet/ios/test/start_cronet.mm

Issue 2487863003: Revert of Revert "Revert of Moving gRPC support interfaces out of cronet and into a new component. (patchset … (Closed)
Patch Set: Created 4 years, 1 month 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 | « components/cronet/ios/test/start_cronet.h ('k') | components/grpc_support/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/test/start_cronet.mm
diff --git a/components/cronet/ios/test/start_cronet.mm b/components/cronet/ios/test/start_cronet.mm
deleted file mode 100644
index 4af4d223cedff5f4bdcf400567f5ff23f7f69f81..0000000000000000000000000000000000000000
--- a/components/cronet/ios/test/start_cronet.mm
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import <Cronet/Cronet.h>
-#import <Foundation/Foundation.h>
-
-#include "components/cronet/ios/test/start_cronet.h"
-
-#include "base/strings/stringprintf.h"
-#include "base/strings/sys_string_conversions.h"
-#include "components/grpc_support/test/quic_test_server.h"
-
-namespace cronet {
-
-void StartCronetIfNecessary(int port) {
- static bool initialized = false;
- if (!initialized) {
- initialized = true;
- [Cronet setUserAgent:@"CronetTest/1.0.0.0" partial:NO];
- [Cronet setHttp2Enabled:true];
- [Cronet setQuicEnabled:true];
- [Cronet setSslKeyLogFileName:@"SSLKEYLOGFILE"];
- [Cronet addQuicHint:@"test.example.com" port:443 altPort:443];
- [Cronet enableTestCertVerifierForTesting];
- [Cronet start];
- }
- NSString* rules = base::SysUTF8ToNSString(
- base::StringPrintf("MAP test.example.com 127.0.0.1:%d,"
- "MAP notfound.example.com ~NOTFOUND",
- port));
- [Cronet setHostResolverRulesForTesting:rules];
-}
-
-} // namespace cronet
« no previous file with comments | « components/cronet/ios/test/start_cronet.h ('k') | components/grpc_support/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698