| OLD | NEW |
| 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 #ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ | 5 #ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ |
| 6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ | 6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
| 13 #include "components/sync/test/fake_server/entity_builder_factory.h" | 14 #include "components/sync/test/fake_server/entity_builder_factory.h" |
| 14 | 15 |
| 15 // Helper for utilizing native FakeServer infrastructure in Android tests. | 16 // Helper for utilizing native FakeServer infrastructure in Android tests. |
| 16 class FakeServerHelperAndroid { | 17 class FakeServerHelperAndroid { |
| 17 public: | 18 public: |
| 18 // Registers the native methods. | 19 // Registers the native methods. |
| 19 static bool Register(JNIEnv* env); | 20 static bool Register(JNIEnv* env); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 145 |
| 145 // Creates a bookmark entity. | 146 // Creates a bookmark entity. |
| 146 std::unique_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( | 147 std::unique_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( |
| 147 JNIEnv* env, | 148 JNIEnv* env, |
| 148 jstring title, | 149 jstring title, |
| 149 jstring url, | 150 jstring url, |
| 150 jstring parent_id); | 151 jstring parent_id); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H
_ | 154 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H
_ |
| OLD | NEW |