blob: d9a3fb9f7dd588fbee4d3b4ea579b48672bd5708 [file] [log] [blame]
# Copyright 2019 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("cellular_setup") {
sources = [
"cellular_setup_base.cc",
"cellular_setup_base.h",
"cellular_setup_impl.cc",
"cellular_setup_impl.h",
"ota_activator.cc",
"ota_activator.h",
"ota_activator_impl.cc",
"ota_activator_impl.h",
]
deps = [
"//base",
"//chromeos/dbus/shill",
"//chromeos/network",
"//chromeos/services/cellular_setup/public/mojom",
"//dbus",
"//url",
]
}
static_library("esim_manager") {
sources = [
"esim_manager.cc",
"esim_manager.h",
"esim_mojo_utils.cc",
"esim_mojo_utils.h",
"esim_profile.cc",
"esim_profile.h",
"euicc.cc",
"euicc.h",
"metrics_util.cc",
"metrics_util.h",
]
deps = [
"//base",
"//chromeos/dbus/hermes",
"//chromeos/network",
"//chromeos/services/cellular_setup/public/mojom",
"//components/device_event_log",
"//components/qr_code_generator",
"//components/user_manager",
"//dbus",
]
}
component("in_process_esim_manager") {
sources = [
"in_process_esim_manager.cc",
"in_process_esim_manager.h",
]
defines = [ "IS_IN_PROCESS_ESIM_MANAGER_IMPL" ]
public_deps = [
"//chromeos/services/cellular_setup/public/mojom",
"//mojo/public/cpp/bindings",
]
deps = [
":esim_manager",
"//chromeos/services/cellular_setup/public/mojom",
"//dbus",
"//mojo/public/cpp/bindings",
]
}
static_library("test_support") {
testonly = true
sources = [
"esim_test_utils.cc",
"esim_test_utils.h",
"fake_ota_activator.cc",
"fake_ota_activator.h",
]
deps = [
":cellular_setup",
"//base",
"//chromeos/services/cellular_setup/public/cpp:test_support",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"cellular_setup_impl_unittest.cc",
"cellular_setup_service_unittest.cc",
"esim_manager_unittest.cc",
"esim_profile_unittest.cc",
"esim_test_base.cc",
"esim_test_base.h",
"euicc_unittest.cc",
"ota_activator_impl_unittest.cc",
]
deps = [
":cellular_setup",
":esim_manager",
":test_support",
"//base",
"//base/test:test_support",
"//chromeos/dbus/hermes",
"//chromeos/dbus/shill",
"//chromeos/network:test_support",
"//chromeos/services/cellular_setup/public/cpp:test_support",
"//components/user_manager:test_support",
"//dbus",
"//testing/gmock",
"//testing/gtest",
]
}