# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//build/config/features.gni") static_library("browser_sync") { sources = [ "browser_sync_client.cc", "browser_sync_client.h", "browser_sync_switches.cc", "browser_sync_switches.h", "profile_sync_components_factory_impl.cc", "profile_sync_components_factory_impl.h", "signin_confirmation_helper.cc", "signin_confirmation_helper.h", ] public_deps = [ "//components/sync" ] deps = [ "//base", "//components/autofill/core/browser", "//components/autofill/core/common", "//components/history/core/browser", "//components/password_manager/core/browser", "//components/prefs", "//components/reading_list/features:flags", "//components/send_tab_to_self", "//components/sync_bookmarks", "//components/sync_sessions", "//components/sync_user_events", "//components/version_info", "//components/version_info:generate_version_info", ] if (is_chromeos) { deps += [ "//chromeos/constants" ] } } source_set("unit_tests") { testonly = true sources = [] deps = [ ":browser_sync", ":test_support", "//base", "//base/test:test_support", "//components/autofill/core/browser:test_support", "//components/autofill/core/common", "//components/bookmarks/browser", "//components/bookmarks/managed", "//components/bookmarks/test", "//components/history/core/browser", "//components/prefs", "//components/sync", "//components/sync:test_support", "//components/sync_bookmarks", "//components/sync_device_info", "//components/sync_preferences", "//components/sync_preferences:test_support", "//components/sync_sessions", "//components/sync_sessions:test_support", "//components/version_info", "//components/version_info:generate_version_info", "//components/webdata/common", "//services/network:test_support", "//testing/gmock", "//testing/gtest", ] } static_library("test_support") { testonly = true sources = [ "test_http_bridge_factory.cc", "test_http_bridge_factory.h", ] deps = [ ":browser_sync", "//base", "//base/test:test_support", "//components/bookmarks/browser", "//components/history/core/browser", "//components/sync", "//components/sync:test_support", "//components/sync_preferences:test_support", "//components/sync_sessions:test_support", "//services/network:test_support", ] }