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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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_H_ 5 #ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_
6 #define 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 #include <string> 10 #include <string>
10 11
11 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
12 #include "sync/test/fake_server/entity_builder_factory.h" 13 #include "components/sync/test/fake_server/entity_builder_factory.h"
13 14
14 // Helper for utilizing native FakeServer infrastructure in Android tests. 15 // Helper for utilizing native FakeServer infrastructure in Android tests.
15 class FakeServerHelperAndroid { 16 class FakeServerHelperAndroid {
16 public: 17 public:
17 // Registers the native methods. 18 // Registers the native methods.
18 static bool Register(JNIEnv* env); 19 static bool Register(JNIEnv* env);
19 20
20 // Creates a FakeServerHelperAndroid. 21 // Creates a FakeServerHelperAndroid.
21 FakeServerHelperAndroid(JNIEnv* env, jobject obj); 22 FakeServerHelperAndroid(JNIEnv* env, jobject obj);
22 23
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 sync_pb::EntitySpecifics* entity_specifics); 143 sync_pb::EntitySpecifics* entity_specifics);
143 144
144 // Creates a bookmark entity. 145 // Creates a bookmark entity.
145 std::unique_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( 146 std::unique_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity(
146 JNIEnv* env, 147 JNIEnv* env,
147 jstring title, 148 jstring title,
148 jstring url, 149 jstring url,
149 jstring parent_id); 150 jstring parent_id);
150 }; 151 };
151 152
152 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ 153 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H _
OLDNEW
« no previous file with comments | « components/sync/test/fake_encryptor.cc ('k') | components/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