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

Side by Side Diff: mojo/android/javatests/validation_test_util.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « mojo/android/javatests/mojo_test_case.cc ('k') | mojo/android/system/base_run_loop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "mojo/android/javatests/validation_test_util.h" 5 #include "mojo/android/javatests/validation_test_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
13 #include "base/test/test_support_android.h" 13 #include "base/test/test_support_android.h"
14 #include "jni/ValidationTestUtil_jni.h" 14 #include "jni/ValidationTestUtil_jni.h"
15 #include "mojo/public/cpp/bindings/tests/validation_test_input_parser.h" 15 #include "mojo/public/cpp/bindings/tests/validation_test_input_parser.h"
16 16
17 using base::android::JavaParamRef;
18 using base::android::ScopedJavaLocalRef;
19
17 namespace mojo { 20 namespace mojo {
18 namespace android { 21 namespace android {
19 22
20 bool RegisterValidationTestUtil(JNIEnv* env) { 23 bool RegisterValidationTestUtil(JNIEnv* env) {
21 return RegisterNativesImpl(env); 24 return RegisterNativesImpl(env);
22 } 25 }
23 26
24 ScopedJavaLocalRef<jobject> ParseData( 27 ScopedJavaLocalRef<jobject> ParseData(
25 JNIEnv* env, 28 JNIEnv* env,
26 const JavaParamRef<jclass>& jcaller, 29 const JavaParamRef<jclass>& jcaller,
(...skipping 15 matching lines...) Expand all
42 DCHECK(!data.size()); 45 DCHECK(!data.size());
43 data_ptr = &data; 46 data_ptr = &data;
44 } 47 }
45 jobject byte_buffer = 48 jobject byte_buffer =
46 env->NewDirectByteBuffer(data_ptr, data.size()); 49 env->NewDirectByteBuffer(data_ptr, data.size());
47 return Java_ValidationTestUtil_buildData(env, byte_buffer, num_handles, NULL); 50 return Java_ValidationTestUtil_buildData(env, byte_buffer, num_handles, NULL);
48 } 51 }
49 52
50 } // namespace android 53 } // namespace android
51 } // namespace mojo 54 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/android/javatests/mojo_test_case.cc ('k') | mojo/android/system/base_run_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698