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

Unified Diff: components/cronet/android/test/test_upload_data_stream_handler.cc

Issue 2227503003: Add net log to UploadDataStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/test/test_upload_data_stream_handler.cc
diff --git a/components/cronet/android/test/test_upload_data_stream_handler.cc b/components/cronet/android/test/test_upload_data_stream_handler.cc
index 92de649a418bd960d618f7d25315d33f438f1fb8..1784fc782a25dbbbef2a4b5e24277660f70d6b4b 100644
--- a/components/cronet/android/test/test_upload_data_stream_handler.cc
+++ b/components/cronet/android/test/test_upload_data_stream_handler.cc
@@ -115,8 +115,10 @@ void TestUploadDataStreamHandler::InitOnNetworkThread() {
init_callback_invoked_ = false;
read_buffer_ = nullptr;
bytes_read_ = 0;
- int res = upload_data_stream_->Init(base::Bind(
- &TestUploadDataStreamHandler::OnInitCompleted, base::Unretained(this)));
+ int res = upload_data_stream_->Init(
+ base::Bind(&TestUploadDataStreamHandler::OnInitCompleted,
+ base::Unretained(this)),
+ net::BoundNetLog());
JNIEnv* env = base::android::AttachCurrentThread();
cronet::Java_TestUploadDataStreamHandler_onInitCalled(
env, jtest_upload_data_stream_handler_.obj(), res);

Powered by Google App Engine
This is Rietveld 408576698