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 <memory> |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 private: | 138 private: |
139 virtual ~FakeServerHelperAndroid(); | 139 virtual ~FakeServerHelperAndroid(); |
140 | 140 |
141 // Deserializes |serialized_entity_specifics| into |entity_specifics|. | 141 // Deserializes |serialized_entity_specifics| into |entity_specifics|. |
142 void DeserializeEntitySpecifics(JNIEnv* env, | 142 void DeserializeEntitySpecifics(JNIEnv* env, |
143 jbyteArray serialized_entity_specifics, | 143 jbyteArray serialized_entity_specifics, |
144 sync_pb::EntitySpecifics* entity_specifics); | 144 sync_pb::EntitySpecifics* entity_specifics); |
145 | 145 |
146 // Creates a bookmark entity. | 146 // Creates a bookmark entity. |
147 std::unique_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( | 147 std::unique_ptr<syncer::LoopbackServerEntity> CreateBookmarkEntity( |
148 JNIEnv* env, | 148 JNIEnv* env, |
149 jstring title, | 149 jstring title, |
150 jstring url, | 150 jstring url, |
151 jstring parent_id); | 151 jstring parent_id); |
152 }; | 152 }; |
153 | 153 |
154 #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 |