blob: ef4ea786e55c3a9cc963d5bd736ddeff0d420360 [file] [log] [blame]
# Copyright 2018 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.
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
static_library("network_config") {
sources = [
"cros_network_config.cc",
"cros_network_config.h",
]
deps = [
"//ash/constants",
"//base",
"//chromeos/components/sync_wifi:network_eligibility_checker",
"//chromeos/dbus/hermes",
"//chromeos/login/login_state",
"//chromeos/network",
"//chromeos/services/network_config/public/cpp",
"//chromeos/services/network_config/public/mojom",
"//components/device_event_log",
"//components/onc",
"//components/proxy_config",
"//components/user_manager",
"//dbus",
"//net",
]
}
component("in_process_instance") {
sources = [
"in_process_instance.cc",
"in_process_instance.h",
]
defines = [ "IS_IN_PROCESS_NETWORK_CONFIG_IMPL" ]
public_deps = [
"//chromeos/services/network_config/public/mojom",
"//mojo/public/cpp/bindings",
]
deps = [
":network_config",
"//chromeos/network",
"//chromeos/services/network_config/public/mojom",
"//mojo/public/cpp/bindings",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "cros_network_config_unittest.cc" ]
deps = [
":network_config",
"//ash/constants:constants",
"//base",
"//base/test:test_support",
"//chromeos/dbus/shill:test_support",
"//chromeos/login/login_state",
"//chromeos/network:test_support",
"//chromeos/services/network_config/public/cpp:test_support",
"//components/onc",
"//components/prefs:test_support",
"//components/sync_preferences:test_support",
"//services/network/public/mojom:mojom_ip_address",
"//testing/gtest",
]
}