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

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

Issue 884073005: Create a Android Sync integration test for typed URLs (try #2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sync/sync_tests.gypi ('k') | sync/test/fake_server/android/fake_server_helper_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12 matching lines...) Expand all
23 jlong CreateFakeServer(JNIEnv* env, jobject obj); 23 jlong CreateFakeServer(JNIEnv* env, jobject obj);
24 24
25 // Factory method for creating a native NetworkResources object. The caller 25 // Factory method for creating a native NetworkResources object. The caller
26 // assumes ownership. 26 // assumes ownership.
27 jlong CreateNetworkResources(JNIEnv* env, jobject obj, jlong fake_server); 27 jlong CreateNetworkResources(JNIEnv* env, jobject obj, jlong fake_server);
28 28
29 // Deletes the given |fake_server| (a FakeServer pointer created via 29 // Deletes the given |fake_server| (a FakeServer pointer created via
30 // CreateFakeServer). 30 // CreateFakeServer).
31 void DeleteFakeServer(JNIEnv* env, jobject obj, jlong fake_server); 31 void DeleteFakeServer(JNIEnv* env, jobject obj, jlong fake_server);
32 32
33 // Returns true if and only if |fake_server| contains |count| entities that
34 // match |model_type_string| and |name|.
35 jboolean VerifyEntityCountByTypeAndName(JNIEnv* env,
36 jobject obj,
37 jlong fake_server,
38 jlong count,
39 jstring model_type_string,
40 jstring name);
41
33 private: 42 private:
34 virtual ~FakeServerHelperAndroid(); 43 virtual ~FakeServerHelperAndroid();
35 }; 44 };
36 45
37 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID 46 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID
OLDNEW
« no previous file with comments | « sync/sync_tests.gypi ('k') | sync/test/fake_server/android/fake_server_helper_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698