blob: b85573579b1ab0a287ebb6c9a17f82b9f4beb6be [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.
import("//build/config/ui.gni")
import("//chromeos/assistant/assistant.gni")
import("//chromeos/components/chromebox_for_meetings/buildflags/buildflags.gni")
import("//testing/test.gni")
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
# Use this target for adding new unit tests. To add a unit test to this target,
# create a "unit_tests" source_set in your service and add it as a dependency
# here.
#
# Unit tests are generally preferred over service tests as they are simpler to
# create and maintain. Check out service_manager::TestConnectorFactory for an
# easy way to test your services.
source_set("unit_tests") {
testonly = true
deps = [
"//chromeos/services/assistant:tests",
"//chromeos/services/bluetooth_config:unit_tests",
"//chromeos/services/cellular_setup:unit_tests",
"//chromeos/services/cros_healthd/public/cpp:unit_tests",
"//chromeos/services/device_sync:unit_tests",
"//chromeos/services/federated/public/cpp:unit_tests",
"//chromeos/services/ime:services_unittests",
"//chromeos/services/ime:unit_tests",
"//chromeos/services/machine_learning/public/cpp:unit_tests",
"//chromeos/services/multidevice_setup:unit_tests",
"//chromeos/services/network_config:unit_tests",
"//chromeos/services/secure_channel:unit_tests",
"//chromeos/services/tts:services_unittests",
]
if (is_cfm) {
deps +=
[ "//chromeos/services/chromebox_for_meetings/public/cpp:unit_tests" ]
}
if (enable_cros_libassistant) {
deps += [ "//chromeos/services/libassistant:unit_tests" ]
}
}