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

Side by Side Diff: components/cronet/android/test/javatests/src/org/chromium/net/ExperimentalOptionsTest.java

Issue 2843293002: Switched to new versions of netty and tcnative (Closed)
Patch Set: Rebase + code formatting Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net; 5 package org.chromium.net;
6 6
7 import android.support.test.filters.MediumTest; 7 import android.support.test.filters.MediumTest;
8 8
9 import org.json.JSONObject; 9 import org.json.JSONObject;
10 10
(...skipping 14 matching lines...) Expand all
25 private CronetTestFramework mTestFramework; 25 private CronetTestFramework mTestFramework;
26 private ExperimentalCronetEngine.Builder mBuilder; 26 private ExperimentalCronetEngine.Builder mBuilder;
27 27
28 @Override 28 @Override
29 protected void setUp() throws Exception { 29 protected void setUp() throws Exception {
30 super.setUp(); 30 super.setUp();
31 mBuilder = new ExperimentalCronetEngine.Builder(getContext()); 31 mBuilder = new ExperimentalCronetEngine.Builder(getContext());
32 CronetTestUtil.setMockCertVerifierForTesting( 32 CronetTestUtil.setMockCertVerifierForTesting(
33 mBuilder, QuicTestServer.createMockCertVerifier()); 33 mBuilder, QuicTestServer.createMockCertVerifier());
34 assertTrue(Http2TestServer.startHttp2TestServer( 34 assertTrue(Http2TestServer.startHttp2TestServer(
35 getContext(), QuicTestServer.getServerCert(), QuicTestServer.get ServerCertKey())); 35 getContext(), SERVER_CERT_PEM, SERVER_KEY_PKCS8_PEM));
36 } 36 }
37 37
38 @Override 38 @Override
39 protected void tearDown() throws Exception { 39 protected void tearDown() throws Exception {
40 assertTrue(Http2TestServer.shutdownHttp2TestServer()); 40 assertTrue(Http2TestServer.shutdownHttp2TestServer());
41 if (mTestFramework != null && mTestFramework.mCronetEngine != null) { 41 if (mTestFramework != null && mTestFramework.mCronetEngine != null) {
42 mTestFramework.mCronetEngine.shutdown(); 42 mTestFramework.mCronetEngine.shutdown();
43 } 43 }
44 super.tearDown(); 44 super.tearDown();
45 } 45 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // flushed to the disk. 131 // flushed to the disk.
132 Log.i(TAG, "file not found"); 132 Log.i(TAG, "file not found");
133 } finally { 133 } finally {
134 if (fileInputStream != null) { 134 if (fileInputStream != null) {
135 fileInputStream.close(); 135 fileInputStream.close();
136 } 136 }
137 } 137 }
138 return false; 138 return false;
139 } 139 }
140 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698