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

Side by Side Diff: components/cronet/android/test/test_upload_data_stream_handler.cc

Issue 2215903002: Add missing using declarations in cronet code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-cronet
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/cronet/android/test/test_upload_data_stream_handler.h" 5 #include "components/cronet/android/test/test_upload_data_stream_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "base/android/jni_string.h" 12 #include "base/android/jni_string.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "jni/TestUploadDataStreamHandler_jni.h" 14 #include "jni/TestUploadDataStreamHandler_jni.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 16
17 using base::android::JavaParamRef;
18
17 namespace cronet { 19 namespace cronet {
18 20
19 static const size_t kReadBufferSize = 32768; 21 static const size_t kReadBufferSize = 32768;
20 22
21 TestUploadDataStreamHandler::TestUploadDataStreamHandler( 23 TestUploadDataStreamHandler::TestUploadDataStreamHandler(
22 std::unique_ptr<net::UploadDataStream> upload_data_stream, 24 std::unique_ptr<net::UploadDataStream> upload_data_stream,
23 JNIEnv* env, 25 JNIEnv* env,
24 jobject jtest_upload_data_stream_handler) 26 jobject jtest_upload_data_stream_handler)
25 : init_callback_invoked_(false), 27 : init_callback_invoked_(false),
26 read_callback_invoked_(false), 28 read_callback_invoked_(false),
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 TestUploadDataStreamHandler* handler = new TestUploadDataStreamHandler( 187 TestUploadDataStreamHandler* handler = new TestUploadDataStreamHandler(
186 std::move(upload_data_stream), env, jtest_upload_data_stream_handler); 188 std::move(upload_data_stream), env, jtest_upload_data_stream_handler);
187 return reinterpret_cast<jlong>(handler); 189 return reinterpret_cast<jlong>(handler);
188 } 190 }
189 191
190 bool TestUploadDataStreamHandlerRegisterJni(JNIEnv* env) { 192 bool TestUploadDataStreamHandlerRegisterJni(JNIEnv* env) {
191 return RegisterNativesImpl(env); 193 return RegisterNativesImpl(env);
192 } 194 }
193 195
194 } // namespace cronet 196 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698