OLD | NEW |
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.ConditionVariable; | 8 import android.os.ConditionVariable; |
9 import android.os.Environment; | 9 import android.os.Environment; |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 import java.net.URLStreamHandlerFactory; | 21 import java.net.URLStreamHandlerFactory; |
22 import java.nio.channels.Channels; | 22 import java.nio.channels.Channels; |
23 import java.nio.channels.ReadableByteChannel; | 23 import java.nio.channels.ReadableByteChannel; |
24 import java.util.HashMap; | 24 import java.util.HashMap; |
25 | 25 |
26 /** | 26 /** |
27 * Framework for testing Cronet. | 27 * Framework for testing Cronet. |
28 */ | 28 */ |
29 @SuppressFBWarnings("URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") | 29 @SuppressFBWarnings("URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") |
30 public class CronetTestFramework { | 30 public class CronetTestFramework { |
31 private static final String TAG = "CronetTestFramework"; | 31 private static final String TAG = CronetTestFramework.class.getSimpleName(); |
32 | 32 |
33 public static final String COMMAND_LINE_ARGS_KEY = "commandLineArgs"; | 33 public static final String COMMAND_LINE_ARGS_KEY = "commandLineArgs"; |
34 public static final String POST_DATA_KEY = "postData"; | 34 public static final String POST_DATA_KEY = "postData"; |
35 public static final String CACHE_KEY = "cache"; | 35 public static final String CACHE_KEY = "cache"; |
36 public static final String SDCH_KEY = "sdch"; | 36 public static final String SDCH_KEY = "sdch"; |
37 public static final String LIBRARY_INIT_KEY = "libraryInit"; | 37 public static final String LIBRARY_INIT_KEY = "libraryInit"; |
38 | 38 |
39 // Uses disk cache. | 39 // Uses disk cache. |
40 public static final String CACHE_DISK = "disk"; | 40 public static final String CACHE_DISK = "disk"; |
41 | 41 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 public void stopNetLog() { | 310 public void stopNetLog() { |
311 if (mRequestFactory != null) { | 311 if (mRequestFactory != null) { |
312 mRequestFactory.stopNetLog(); | 312 mRequestFactory.stopNetLog(); |
313 } | 313 } |
314 if (mCronetEngine != null) { | 314 if (mCronetEngine != null) { |
315 mCronetEngine.stopNetLog(); | 315 mCronetEngine.stopNetLog(); |
316 } | 316 } |
317 } | 317 } |
318 } | 318 } |
OLD | NEW |