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