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 SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ |
6 #define SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ | 6 #define SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 private: | 136 private: |
137 virtual ~FakeServerHelperAndroid(); | 137 virtual ~FakeServerHelperAndroid(); |
138 | 138 |
139 // Deserializes |serialized_entity_specifics| into |entity_specifics|. | 139 // Deserializes |serialized_entity_specifics| into |entity_specifics|. |
140 void DeserializeEntitySpecifics(JNIEnv* env, | 140 void DeserializeEntitySpecifics(JNIEnv* env, |
141 jbyteArray serialized_entity_specifics, | 141 jbyteArray serialized_entity_specifics, |
142 sync_pb::EntitySpecifics* entity_specifics); | 142 sync_pb::EntitySpecifics* entity_specifics); |
143 | 143 |
144 // Creates a bookmark entity. | 144 // Creates a bookmark entity. |
145 scoped_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( | 145 std::unique_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( |
146 JNIEnv* env, | 146 JNIEnv* env, |
147 jstring title, | 147 jstring title, |
148 jstring url, | 148 jstring url, |
149 jstring parent_id); | 149 jstring parent_id); |
150 }; | 150 }; |
151 | 151 |
152 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ | 152 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ |
OLD | NEW |