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

Side by Side Diff: components/cronet/android/test/javatests/src/org/chromium/net/ExperimentalOptionsTest.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 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.SmallTest; 7 import android.support.test.filters.SmallTest;
8 8
9 import org.json.JSONObject; 9 import org.json.JSONObject;
10 10
11 import org.chromium.base.PathUtils; 11 import org.chromium.base.PathUtils;
12 import org.chromium.base.test.util.Feature; 12 import org.chromium.base.test.util.Feature;
13 13
14 import java.io.BufferedReader; 14 import java.io.BufferedReader;
15 import java.io.File; 15 import java.io.File;
16 import java.io.FileReader; 16 import java.io.FileReader;
17 17
18 /** 18 /**
19 * Tests for experimental options. 19 * Tests for experimental options.
20 */ 20 */
21 public class ExperimentalOptionsTest extends CronetTestBase { 21 public class ExperimentalOptionsTest extends CronetTestBase {
22 private static final String TAG = "cr.QuicTest"; 22 private static final String TAG = ExperimentalOptionsTest.class.getSimpleNam e();
23 private CronetTestFramework mTestFramework; 23 private CronetTestFramework mTestFramework;
24 private ExperimentalCronetEngine.Builder mBuilder; 24 private ExperimentalCronetEngine.Builder mBuilder;
25 25
26 @Override 26 @Override
27 protected void setUp() throws Exception { 27 protected void setUp() throws Exception {
28 super.setUp(); 28 super.setUp();
29 System.loadLibrary("cronet_tests"); 29 System.loadLibrary("cronet_tests");
30 mBuilder = new ExperimentalCronetEngine.Builder(getContext()); 30 mBuilder = new ExperimentalCronetEngine.Builder(getContext());
31 CronetTestUtil.setMockCertVerifierForTesting( 31 CronetTestUtil.setMockCertVerifierForTesting(
32 mBuilder, QuicTestServer.createMockCertVerifier()); 32 mBuilder, QuicTestServer.createMockCertVerifier());
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 } 78 }
79 } finally { 79 } finally {
80 logReader.close(); 80 logReader.close();
81 } 81 }
82 assertTrue(validFile); 82 assertTrue(validFile);
83 assertTrue(file.delete()); 83 assertTrue(file.delete());
84 assertTrue(!file.exists()); 84 assertTrue(!file.exists());
85 } 85 }
86 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698