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

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

Issue 1232003003: [Sync] Add bookmark move tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmark-folders
Patch Set: Use a couple existing JNI methods instead. Created 5 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 SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID 5 #ifndef SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID
6 #define SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID 6 #define SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 30 matching lines...) Expand all
41 jstring model_type_string, 41 jstring model_type_string,
42 jstring name); 42 jstring name);
43 43
44 // Returns true iff |fake_server| has exactly one window of sessions with 44 // Returns true iff |fake_server| has exactly one window of sessions with
45 // tabs matching |url_array|. The order of the array does not matter. 45 // tabs matching |url_array|. The order of the array does not matter.
46 jboolean VerifySessions(JNIEnv* env, 46 jboolean VerifySessions(JNIEnv* env,
47 jobject obj, 47 jobject obj,
48 jlong fake_server, 48 jlong fake_server,
49 jobjectArray url_array); 49 jobjectArray url_array);
50 50
51 // Return the entities for |model_type_string| on |fake_server|.
52 base::android::ScopedJavaLocalRef<jobjectArray> GetSyncEntitiesByModelType(
53 JNIEnv* env,
54 jobject obj,
55 jlong fake_server,
56 jstring model_type_string);
57
51 // Injects a UniqueClientEntity into |fake_server|. 58 // Injects a UniqueClientEntity into |fake_server|.
52 void InjectUniqueClientEntity(JNIEnv* env, 59 void InjectUniqueClientEntity(JNIEnv* env,
53 jobject obj, 60 jobject obj,
54 jlong fake_server, 61 jlong fake_server,
55 jstring name, 62 jstring name,
56 jbyteArray serialized_entity_specifics); 63 jbyteArray serialized_entity_specifics);
57 64
58 // Modifies the entity with |id| on |fake_server|. 65 // Modifies the entity with |id| on |fake_server|.
59 void ModifyEntitySpecifics(JNIEnv* env, 66 void ModifyEntitySpecifics(JNIEnv* env,
60 jobject obj, 67 jobject obj,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 124
118 // Creates a bookmark entity. 125 // Creates a bookmark entity.
119 scoped_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( 126 scoped_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity(
120 JNIEnv* env, 127 JNIEnv* env,
121 jstring title, 128 jstring title,
122 jstring url, 129 jstring url,
123 jstring parent_id); 130 jstring parent_id);
124 }; 131 };
125 132
126 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID 133 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698