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

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

Issue 2109293005: [Cronet] Fix up log TAGs to be accurate and prevent future inaccuracies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch sample to android.util.Log Created 3 years, 11 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 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.content.Context; 7 import android.content.Context;
8 import android.os.Environment; 8 import android.os.Environment;
9 9
10 import static junit.framework.Assert.assertEquals; 10 import static junit.framework.Assert.assertEquals;
11 import static junit.framework.Assert.assertTrue; 11 import static junit.framework.Assert.assertTrue;
12 12
13 import org.chromium.base.Log; 13 import org.chromium.base.Log;
14 import org.chromium.base.PathUtils; 14 import org.chromium.base.PathUtils;
15 import org.chromium.base.annotations.SuppressFBWarnings; 15 import org.chromium.base.annotations.SuppressFBWarnings;
16 import org.chromium.net.impl.CronetEngineBase; 16 import org.chromium.net.impl.CronetEngineBase;
17 17
18 import java.io.File; 18 import java.io.File;
19 import java.net.URLStreamHandlerFactory; 19 import java.net.URLStreamHandlerFactory;
20 20
21 /** 21 /**
22 * Framework for testing Cronet. 22 * Framework for testing Cronet.
23 */ 23 */
24 @SuppressFBWarnings("URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 24 @SuppressFBWarnings("URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
25 public class CronetTestFramework { 25 public class CronetTestFramework {
26 private static final String TAG = "CronetTestFramework"; 26 private static final String TAG = CronetTestFramework.class.getSimpleName();
27 27
28 public static final String COMMAND_LINE_ARGS_KEY = "commandLineArgs"; 28 public static final String COMMAND_LINE_ARGS_KEY = "commandLineArgs";
29 public static final String POST_DATA_KEY = "postData"; 29 public static final String POST_DATA_KEY = "postData";
30 public static final String CACHE_KEY = "cache"; 30 public static final String CACHE_KEY = "cache";
31 public static final String SDCH_KEY = "sdch"; 31 public static final String SDCH_KEY = "sdch";
32 public static final String LIBRARY_INIT_KEY = "libraryInit"; 32 public static final String LIBRARY_INIT_KEY = "libraryInit";
33 33
34 // Uses disk cache. 34 // Uses disk cache.
35 public static final String CACHE_DISK = "disk"; 35 public static final String CACHE_DISK = "disk";
36 36
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 false); 221 false);
222 } 222 }
223 } 223 }
224 224
225 public void stopNetLog() { 225 public void stopNetLog() {
226 if (mCronetEngine != null) { 226 if (mCronetEngine != null) {
227 mCronetEngine.stopNetLog(); 227 mCronetEngine.stopNetLog();
228 } 228 }
229 } 229 }
230 } 230 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698