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

Side by Side Diff: components/cronet/android/test/cronet_url_request_context_config_test.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 "cronet_url_request_context_config_test.h" 5 #include "cronet_url_request_context_config_test.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "components/cronet/url_request_context_config.h" 13 #include "components/cronet/url_request_context_config.h"
14 #include "components/cronet/version.h" 14 #include "components/cronet/version.h"
15 #include "jni/CronetUrlRequestContextTest_jni.h" 15 #include "jni/CronetUrlRequestContextTest_jni.h"
16 16
17 using base::android::JavaParamRef;
18
17 namespace cronet { 19 namespace cronet {
18 20
19 // Verifies that all the configuration options set by 21 // Verifies that all the configuration options set by
20 // CronetUrlRequestContextTest.testCronetEngineBuilderConfig 22 // CronetUrlRequestContextTest.testCronetEngineBuilderConfig
21 // made it from the CronetEngine.Builder to the URLRequestContextConfig. 23 // made it from the CronetEngine.Builder to the URLRequestContextConfig.
22 static void VerifyUrlRequestContextConfig( 24 static void VerifyUrlRequestContextConfig(
23 JNIEnv* env, 25 JNIEnv* env,
24 const JavaParamRef<jclass>& jcaller, 26 const JavaParamRef<jclass>& jcaller,
25 jlong jurl_request_context_config, 27 jlong jurl_request_context_config,
26 const JavaParamRef<jstring>& jstorage_path) { 28 const JavaParamRef<jstring>& jstorage_path) {
(...skipping 21 matching lines...) Expand all
48 CHECK_EQ(config->data_reduction_secure_proxy_check_url, "uvwx"); 50 CHECK_EQ(config->data_reduction_secure_proxy_check_url, "uvwx");
49 CHECK_EQ(config->storage_path, 51 CHECK_EQ(config->storage_path,
50 base::android::ConvertJavaStringToUTF8(env, jstorage_path)); 52 base::android::ConvertJavaStringToUTF8(env, jstorage_path));
51 } 53 }
52 54
53 bool RegisterCronetUrlRequestContextConfigTest(JNIEnv* env) { 55 bool RegisterCronetUrlRequestContextConfigTest(JNIEnv* env) {
54 return RegisterNativesImpl(env); 56 return RegisterNativesImpl(env);
55 } 57 }
56 58
57 } // namespace cronet 59 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698