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

Unified Diff: components/sync/BUILD.gn

Issue 2360703002: [Sync] Implements the loopback sync server. (Closed)
Patch Set: Shuffle and rename stuff around. 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/BUILD.gn
diff --git a/components/sync/BUILD.gn b/components/sync/BUILD.gn
index 1ebece93dd715742a6d823d44a974a70c1b40b5c..11f4ee6aa985f7af06f8728f69fc22b6f4caf76a 100644
--- a/components/sync/BUILD.gn
+++ b/components/sync/BUILD.gn
@@ -586,6 +586,10 @@ static_library("sync") {
]
}
+ if (is_win) {
+ deps += [ "//components/sync:loopback_sync_server" ]
+ }
+
if (enable_configuration_policy) {
sources += [
"driver/sync_policy_handler.cc",
@@ -600,6 +604,40 @@ static_library("sync") {
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
+static_library("loopback_sync_server") {
+ sources = [
+ "engine_impl/loopback_server/loopback_connection_manager.cc",
+ "engine_impl/loopback_server/loopback_connection_manager.h",
+ "engine_impl/loopback_server/loopback_server.cc",
+ "engine_impl/loopback_server/loopback_server.h",
+ "engine_impl/loopback_server/loopback_server_entity.cc",
+ "engine_impl/loopback_server/loopback_server_entity.h",
+ "engine_impl/loopback_server/persistent_bookmark_entity.cc",
+ "engine_impl/loopback_server/persistent_bookmark_entity.h",
+ "engine_impl/loopback_server/persistent_permanent_entity.cc",
+ "engine_impl/loopback_server/persistent_permanent_entity.h",
+ "engine_impl/loopback_server/persistent_tombstone_entity.cc",
+ "engine_impl/loopback_server/persistent_tombstone_entity.h",
+ "engine_impl/loopback_server/persistent_unique_client_entity.cc",
+ "engine_impl/loopback_server/persistent_unique_client_entity.h",
+ ]
+
+ configs += [ "//build/config:precompiled_headers" ]
+
+ public_deps = [
+ "//components/sync/protocol",
+ ]
+ deps = [
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//components/invalidation/public",
+ "//net",
+ "//url",
+ ]
+
+ configs += [ "//build/config/compiler:wexit_time_destructors" ]
+}
+
static_library("test_support_sync_core") {
testonly = true
sources = [
@@ -947,6 +985,10 @@ source_set("unit_tests") {
sources -= [ "core/http_bridge_unittest.cc" ]
}
+ if (is_win) {
+ sources += [ "engine_impl/loopback_server/loopback_server_unittest.cc" ]
+ }
+
if (enable_configuration_policy) {
sources += [ "driver/sync_policy_handler_unittest.cc" ]
deps += [

Powered by Google App Engine
This is Rietveld 408576698