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

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

Issue 998373004: Sync: Generalize entity injection in Android tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // Returns true if and only if |fake_server| contains |count| entities that 34 // Returns true if and only if |fake_server| contains |count| entities that
35 // match |model_type_string| and |name|. 35 // match |model_type_string| and |name|.
36 jboolean VerifyEntityCountByTypeAndName(JNIEnv* env, 36 jboolean VerifyEntityCountByTypeAndName(JNIEnv* env,
37 jobject obj, 37 jobject obj,
38 jlong fake_server, 38 jlong fake_server,
39 jlong count, 39 jlong count,
40 jstring model_type_string, 40 jstring model_type_string,
41 jstring name); 41 jstring name);
42 42
43 // Injects a typed URL into |fake_server|. 43 // Injects a UniqueClientEntity into |fake_server|.
44 // 44 void InjectUniqueClientEntity(JNIEnv* env,
45 // TODO(pvalenzuela): Generalize this method to accept a serialized 45 jobject obj,
46 // EntitySpecifics so that a separate method is not required for each data 46 jlong fake_server,
47 // type. 47 jstring name,
48 void InjectTypedUrl(JNIEnv* env, 48 jbyteArray serialized_entity_specifics);
49 jobject obj,
50 jlong fake_server,
51 jstring url);
52 49
53 private: 50 private:
54 virtual ~FakeServerHelperAndroid(); 51 virtual ~FakeServerHelperAndroid();
55 }; 52 };
56 53
57 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID 54 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698