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

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

Issue 1093793002: Allow setting Cronet NetLog level to LOG_ALL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 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.app.Activity; 7 import android.app.Activity;
8 import android.content.Intent; 8 import android.content.Intent;
9 import android.os.Bundle; 9 import android.os.Bundle;
10 import android.os.Environment; 10 import android.os.Environment;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 public boolean isLoading() { 182 public boolean isLoading() {
183 return mLoading; 183 return mLoading;
184 } 184 }
185 185
186 public int getHttpStatusCode() { 186 public int getHttpStatusCode() {
187 return mHttpStatusCode; 187 return mHttpStatusCode;
188 } 188 }
189 189
190 public void startNetLog() { 190 public void startNetLog() {
191 mRequestFactory.startNetLogToFile(Environment.getExternalStorageDirector y().getPath() 191 mRequestFactory.startNetLogToFile(Environment.getExternalStorageDirector y().getPath()
192 + "/cronet_sample_netlog_old_api.json"); 192 + "/cronet_sample_netlog_old_api.json",
193 false);
193 mUrlRequestContext.startNetLogToFile(Environment.getExternalStorageDirec tory().getPath() 194 mUrlRequestContext.startNetLogToFile(Environment.getExternalStorageDirec tory().getPath()
194 + "/cronet_sample_netlog_new_api.json"); 195 + "/cronet_sample_netlog_new_api.json",
196 false);
195 } 197 }
196 198
197 public void stopNetLog() { 199 public void stopNetLog() {
198 mRequestFactory.stopNetLog(); 200 mRequestFactory.stopNetLog();
199 mUrlRequestContext.stopNetLog(); 201 mUrlRequestContext.stopNetLog();
200 } 202 }
201 } 203 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698