1# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5static_library("sync_wifi") {
6  sources = [
7    "local_network_collector.h",
8    "local_network_collector_impl.cc",
9    "local_network_collector_impl.h",
10    "network_identifier.cc",
11    "network_identifier.h",
12    "network_type_conversions.cc",
13    "network_type_conversions.h",
14    "pending_network_configuration_tracker.h",
15    "pending_network_configuration_tracker_impl.cc",
16    "pending_network_configuration_tracker_impl.h",
17    "pending_network_configuration_update.cc",
18    "pending_network_configuration_update.h",
19    "synced_network_updater.h",
20    "synced_network_updater_impl.cc",
21    "synced_network_updater_impl.h",
22    "timer_factory.cc",
23    "timer_factory.h",
24    "wifi_configuration_bridge.cc",
25    "wifi_configuration_bridge.h",
26    "wifi_configuration_sync_service.cc",
27    "wifi_configuration_sync_service.h",
28  ]
29  deps = [
30    "//ash/public/cpp",
31    "//base",
32    "//chromeos/dbus/shill",
33    "//chromeos/network",
34    "//chromeos/services/network_config/public/mojom",
35    "//components/device_event_log",
36    "//components/keyed_service/core",
37    "//components/prefs",
38    "//components/proxy_config",
39    "//components/sync",
40    "//components/version_info",
41    "//dbus",
42  ]
43}
44
45source_set("test_support") {
46  testonly = true
47  sources = [
48    "fake_local_network_collector.cc",
49    "fake_local_network_collector.h",
50    "fake_one_shot_timer.cc",
51    "fake_one_shot_timer.h",
52    "fake_pending_network_configuration_tracker.cc",
53    "fake_pending_network_configuration_tracker.h",
54    "fake_timer_factory.cc",
55    "fake_timer_factory.h",
56    "network_test_helper.cc",
57    "network_test_helper.h",
58    "test_data_generator.cc",
59    "test_data_generator.h",
60  ]
61  deps = [
62    ":sync_wifi",
63    "//base/test:test_support",
64    "//chromeos/login/login_state",
65    "//chromeos/network:test_support",
66    "//chromeos/services/network_config:in_process_instance",
67    "//chromeos/services/network_config:network_config",
68    "//chromeos/services/network_config/public/cpp:test_support",
69    "//components/onc",
70    "//components/proxy_config",
71    "//components/sync:test_support",
72    "//components/sync_preferences:test_support",
73    "//components/user_manager:test_support",
74  ]
75}
76
77source_set("unit_tests") {
78  testonly = true
79  sources = [
80    "local_network_collector_impl_unittest.cc",
81    "network_identifier_unittest.cc",
82    "pending_network_configuration_tracker_impl_unittest.cc",
83    "synced_network_updater_impl_unittest.cc",
84    "wifi_configuration_bridge_unittest.cc",
85  ]
86  deps = [
87    ":sync_wifi",
88    ":test_support",
89    "//ash/public/cpp",
90    "//base/test:test_support",
91    "//chromeos/dbus/shill:test_support",
92    "//chromeos/login/login_state",
93    "//chromeos/login/login_state:test_support",
94    "//chromeos/network:test_support",
95    "//chromeos/services/network_config",
96    "//chromeos/services/network_config:in_process_instance",
97    "//chromeos/services/network_config/public/cpp:test_support",
98    "//components/prefs:test_support",
99    "//components/sync:test_support",
100    "//components/sync_preferences:test_support",
101    "//components/user_manager:test_support",
102    "//testing/gtest",
103  ]
104}
105