blob: 26b6fe998a723bdc50138664e77369c849f5cf69 [file] [log] [blame]
# Copyright 2020 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, "Telemetry Extension is Chrome OS only")
assert(!is_official_build,
"Telemetry Extension is only built for unofficial builds")
source_set("telemetry_extension_ui") {
sources = [
"probe_service.cc",
"probe_service.h",
"probe_service_converters.cc",
"probe_service_converters.h",
"telemetry_extension_ui.cc",
"telemetry_extension_ui.h",
"url_constants.cc",
"url_constants.h",
]
deps = [
"//base",
"//chromeos/components/telemetry_extension_ui/mojom",
"//chromeos/constants",
"//chromeos/resources:telemetry_extension_resources",
"//chromeos/services/cros_healthd/public/cpp",
"//chromeos/services/cros_healthd/public/mojom",
"//content/public/browser",
"//ui/webui",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"probe_service_converters_unittest.cc",
"probe_service_unittest.cc",
]
deps = [
":telemetry_extension_ui",
"//base",
"//base/test:test_support",
"//chromeos/components/telemetry_extension_ui/mojom",
"//chromeos/dbus/cros_healthd",
"//chromeos/services/cros_healthd/public/mojom",
"//testing/gmock",
"//testing/gtest",
]
}