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

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

Issue 1472693003: [Cronet] Clear mock cert verifier reference in CronetEngine.Builder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.test.AndroidTestCase; 7 import android.test.AndroidTestCase;
8 8
9 import org.chromium.base.PathUtils; 9 import org.chromium.base.PathUtils;
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 /** 57 /**
58 * Starts the CronetTest framework appending the provided command line 58 * Starts the CronetTest framework appending the provided command line
59 * arguments and loads the given URL. The URL can be null. 59 * arguments and loads the given URL. The URL can be null.
60 */ 60 */
61 protected CronetTestFramework startCronetTestFrameworkWithUrlAndCommandLineA rgs( 61 protected CronetTestFramework startCronetTestFrameworkWithUrlAndCommandLineA rgs(
62 String url, String[] commandLineArgs) { 62 String url, String[] commandLineArgs) {
63 mCronetTestFramework = new CronetTestFramework(url, commandLineArgs, get Context(), null); 63 mCronetTestFramework = new CronetTestFramework(url, commandLineArgs, get Context(), null);
64 return mCronetTestFramework; 64 return mCronetTestFramework;
65 } 65 }
66 66
67 // Helper method to tell the framework to skip factory init during construct ion. 67 // Helper method to tell the framework to skip library init during construct ion.
68 protected CronetTestFramework startCronetTestFrameworkAndSkipFactoryInit() { 68 protected CronetTestFramework startCronetTestFrameworkAndSkipLibraryInit() {
69 String[] commandLineArgs = { 69 String[] commandLineArgs = {
70 CronetTestFramework.LIBRARY_INIT_KEY, CronetTestFramework.LIBRAR Y_INIT_SKIP}; 70 CronetTestFramework.LIBRARY_INIT_KEY, CronetTestFramework.Librar yInitType.NONE};
71 mCronetTestFramework = 71 mCronetTestFramework =
72 startCronetTestFrameworkWithUrlAndCommandLineArgs(null, commandL ineArgs); 72 startCronetTestFrameworkWithUrlAndCommandLineArgs(null, commandL ineArgs);
73 return mCronetTestFramework; 73 return mCronetTestFramework;
74 } 74 }
75 75
76 @Override 76 @Override
77 protected void runTest() throws Throwable { 77 protected void runTest() throws Throwable {
78 if (!getClass().getPackage().getName().equals( 78 if (!getClass().getPackage().getName().equals(
79 "org.chromium.net.urlconnection")) { 79 "org.chromium.net.urlconnection")) {
80 super.runTest(); 80 super.runTest();
(...skipping 25 matching lines...) Expand all
106 @Retention(RetentionPolicy.RUNTIME) 106 @Retention(RetentionPolicy.RUNTIME)
107 public @interface CompareDefaultWithCronet { 107 public @interface CompareDefaultWithCronet {
108 } 108 }
109 109
110 @Target(ElementType.METHOD) 110 @Target(ElementType.METHOD)
111 @Retention(RetentionPolicy.RUNTIME) 111 @Retention(RetentionPolicy.RUNTIME)
112 public @interface OnlyRunCronetHttpURLConnection { 112 public @interface OnlyRunCronetHttpURLConnection {
113 } 113 }
114 114
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698