# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//third_party/protobuf/proto_library.gni")
assert(is_chromeos_ash, "Non-Chrome-OS builds must not depend on //chromeos")
component("oobe_config") {
output_name = "ash_oobe_config"
defines = [ "IS_ASH_DBUS_OOBE_CONFIG_IMPL" ]
deps = [
":proto",
"//base",
"//chromeos/dbus/common",
"//chromeos/dbus/constants",
"//dbus",
]
sources = [
"fake_oobe_configuration_client.cc",
"fake_oobe_configuration_client.h",
"oobe_configuration_client.cc",
"oobe_configuration_client.h",
"oobe_configuration_metrics.cc",
"oobe_configuration_metrics.h",
]
}
source_set("unit_tests") {
testonly = true
deps = [
":oobe_config",
":proto",
"//base",
"//base/test:test_support",
"//dbus",
"//dbus:test_support",
"//testing/gmock",
"//testing/gtest",
]
sources = [ "oobe_configuration_client_unittest.cc" ]
}
proto_library("proto") {
sources =
[ "//third_party/cros_system_api/dbus/oobe_config/oobe_config.proto" ]
proto_out_dir = "chromeos/ash/components/dbus/oobe_config"
}