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

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

Issue 2836063005: [cronet] Add mechanism for restarting CronetEnvironment (Closed)
Patch Set: per #5 Created 3 years, 8 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
Index: components/cronet/ios/test/cronet_http_test.mm
diff --git a/components/cronet/ios/test/cronet_http_test.mm b/components/cronet/ios/test/cronet_http_test.mm
index 58185081938d23a4a681f663069287eff30f6fb7..6ffb94f7a8465a81052075cb6d0db25583626bb5 100644
--- a/components/cronet/ios/test/cronet_http_test.mm
+++ b/components/cronet/ios/test/cronet_http_test.mm
@@ -140,7 +140,7 @@ class HttpTest : public ::testing::Test {
[Cronet setRequestFilterBlock:^(NSURLRequest* request) {
return YES;
}];
- StartCronetIfNecessary(grpc_support::GetQuicTestServerPort());
+ StartCronet(grpc_support::GetQuicTestServerPort());
[Cronet registerHttpProtocolHandler];
NSURLSessionConfiguration* config =
[NSURLSessionConfiguration ephemeralSessionConfiguration];
@@ -157,6 +157,9 @@ class HttpTest : public ::testing::Test {
void TearDown() override {
grpc_support::ShutdownQuicTestServer();
TestServer::Shutdown();
+
+ [Cronet stopNetLog];
+ [Cronet shutdown];
}
// Launches the supplied |task| and blocks until it completes, with a timeout

Powered by Google App Engine
This is Rietveld 408576698