OLD | NEW |
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 "test_upload_data_stream_handler.h" | 5 #include "test_upload_data_stream_handler.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
10 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
11 #include "base/bind.h" | 13 #include "base/bind.h" |
12 #include "jni/TestUploadDataStreamHandler_jni.h" | 14 #include "jni/TestUploadDataStreamHandler_jni.h" |
13 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
14 | 16 |
15 namespace cronet { | 17 namespace cronet { |
16 | 18 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 TestUploadDataStreamHandler* handler = new TestUploadDataStreamHandler( | 185 TestUploadDataStreamHandler* handler = new TestUploadDataStreamHandler( |
184 upload_data_stream.Pass(), env, jtest_upload_data_stream_handler); | 186 upload_data_stream.Pass(), env, jtest_upload_data_stream_handler); |
185 return reinterpret_cast<jlong>(handler); | 187 return reinterpret_cast<jlong>(handler); |
186 } | 188 } |
187 | 189 |
188 bool TestUploadDataStreamHandlerRegisterJni(JNIEnv* env) { | 190 bool TestUploadDataStreamHandlerRegisterJni(JNIEnv* env) { |
189 return RegisterNativesImpl(env); | 191 return RegisterNativesImpl(env); |
190 } | 192 } |
191 | 193 |
192 } // namespace cronet | 194 } // namespace cronet |
OLD | NEW |