| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <iostream> | 5 #include <iostream> |
| 6 | 6 |
| 7 #include "base/android/jni_generator/sample_for_tests.h" | 7 #include "base/android/jni_generator/sample_for_tests.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" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 base::android::Java_InnerStructA_create( | 129 base::android::Java_InnerStructA_create( |
| 130 env, 0, 1, ConvertUTF8ToJavaString(env, "test")); | 130 env, 0, 1, ConvertUTF8ToJavaString(env, "test")); |
| 131 base::android::Java_SampleForTests_addStructA(env, my_java_object, | 131 base::android::Java_SampleForTests_addStructA(env, my_java_object, |
| 132 struct_a); | 132 struct_a); |
| 133 } | 133 } |
| 134 base::android::Java_SampleForTests_iterateAndDoSomething(env, my_java_object); | 134 base::android::Java_SampleForTests_iterateAndDoSomething(env, my_java_object); |
| 135 base::android::Java_SampleForTests_packagePrivateJavaMethod(env, | 135 base::android::Java_SampleForTests_packagePrivateJavaMethod(env, |
| 136 my_java_object); | 136 my_java_object); |
| 137 base::android::Java_SampleForTests_methodThatThrowsException(env, | 137 base::android::Java_SampleForTests_methodThatThrowsException(env, |
| 138 my_java_object); | 138 my_java_object); |
| 139 base::android::Java_SampleForTests_javaMethodWithAnnotatedParam( |
| 140 env, my_java_object, 42); |
| 139 return 0; | 141 return 0; |
| 140 } | 142 } |
| OLD | NEW |