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

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

Issue 2408463002: [Sync] Move network-related code from core/ to engine/net/. (Closed)
Patch Set: Use SyncServerConnectionManager instead of ServerConnectionManagerImpl. Created 4 years, 2 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 #include "components/sync/test/fake_server/android/fake_server_helper_android.h" 5 #include "components/sync/test/fake_server/android/fake_server_helper_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/android/jni_array.h" 12 #include "base/android/jni_array.h"
13 #include "base/android/jni_string.h" 13 #include "base/android/jni_string.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "components/sync/base/model_type.h" 15 #include "components/sync/base/model_type.h"
16 #include "components/sync/core/network_resources.h" 16 #include "components/sync/engine/net/network_resources.h"
17 #include "components/sync/protocol/sync.pb.h" 17 #include "components/sync/protocol/sync.pb.h"
18 #include "components/sync/test/fake_server/bookmark_entity_builder.h" 18 #include "components/sync/test/fake_server/bookmark_entity_builder.h"
19 #include "components/sync/test/fake_server/fake_server.h" 19 #include "components/sync/test/fake_server/fake_server.h"
20 #include "components/sync/test/fake_server/fake_server_network_resources.h" 20 #include "components/sync/test/fake_server/fake_server_network_resources.h"
21 #include "components/sync/test/fake_server/fake_server_verifier.h" 21 #include "components/sync/test/fake_server/fake_server_verifier.h"
22 #include "components/sync/test/fake_server/tombstone_entity.h" 22 #include "components/sync/test/fake_server/tombstone_entity.h"
23 #include "components/sync/test/fake_server/unique_client_entity.h" 23 #include "components/sync/test/fake_server/unique_client_entity.h"
24 #include "jni/FakeServerHelper_jni.h" 24 #include "jni/FakeServerHelper_jni.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 jlong fake_server) { 306 jlong fake_server) {
307 fake_server::FakeServer* fake_server_ptr = 307 fake_server::FakeServer* fake_server_ptr =
308 reinterpret_cast<fake_server::FakeServer*>(fake_server); 308 reinterpret_cast<fake_server::FakeServer*>(fake_server);
309 fake_server_ptr->ClearServerData(); 309 fake_server_ptr->ClearServerData();
310 } 310 }
311 311
312 // static 312 // static
313 bool FakeServerHelperAndroid::Register(JNIEnv* env) { 313 bool FakeServerHelperAndroid::Register(JNIEnv* env) {
314 return RegisterNativesImpl(env); 314 return RegisterNativesImpl(env);
315 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698