| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef BASE_ANDROID_JNI_GENERATOR_SAMPLE_FOR_TESTS_H_ | 5 #ifndef BASE_ANDROID_JNI_GENERATOR_SAMPLE_FOR_TESTS_H_ |
| 6 #define BASE_ANDROID_JNI_GENERATOR_SAMPLE_FOR_TESTS_H_ | 6 #define BASE_ANDROID_JNI_GENERATOR_SAMPLE_FOR_TESTS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
| 13 #include "base/basictypes.h" | |
| 14 | 13 |
| 15 namespace base { | 14 namespace base { |
| 16 namespace android { | 15 namespace android { |
| 17 | 16 |
| 18 // This file is used to: | 17 // This file is used to: |
| 19 // - document the best practices and guidelines on JNI usage. | 18 // - document the best practices and guidelines on JNI usage. |
| 20 // - ensure sample_for_tests_jni.h compiles and the functions declared in it | 19 // - ensure sample_for_tests_jni.h compiles and the functions declared in it |
| 21 // as expected. | 20 // as expected. |
| 22 // | 21 // |
| 23 // Methods are called directly from Java (except RegisterJNI). More | 22 // Methods are called directly from Java (except RegisterJNI). More |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 private: | 170 private: |
| 172 std::map<long, std::string> map_; | 171 std::map<long, std::string> map_; |
| 173 | 172 |
| 174 DISALLOW_COPY_AND_ASSIGN(CPPClass); | 173 DISALLOW_COPY_AND_ASSIGN(CPPClass); |
| 175 }; | 174 }; |
| 176 | 175 |
| 177 } // namespace android | 176 } // namespace android |
| 178 } // namespace base | 177 } // namespace base |
| 179 | 178 |
| 180 #endif // BASE_ANDROID_JNI_GENERATOR_SAMPLE_FOR_TESTS_H_ | 179 #endif // BASE_ANDROID_JNI_GENERATOR_SAMPLE_FOR_TESTS_H_ |
| OLD | NEW |