Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: components/sync/test/fake_server/android/fake_server_helper_android.h

Issue 2969643002: Reland - Replace FakeServer's implementation with LoopbackServer invocations. (Closed)
Patch Set: Rebased on master. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698