BUILD.gn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 2018 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/ui.gni")
  5. import("//chromeos/ash/components/assistant/assistant.gni")
  6. import("//testing/test.gni")
  7. assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
  8. # Use this target for adding new unit tests. To add a unit test to this target,
  9. # create a "unit_tests" source_set in your service and add it as a dependency
  10. # here.
  11. #
  12. # Unit tests are generally preferred over service tests as they are simpler to
  13. # create and maintain. Check out service_manager::TestConnectorFactory for an
  14. # easy way to test your services.
  15. source_set("unit_tests") {
  16. testonly = true
  17. deps = [
  18. "//chromeos/ash/services/assistant:tests",
  19. "//chromeos/ash/services/federated/public/cpp:unit_tests",
  20. "//chromeos/services/bluetooth_config:unit_tests",
  21. "//chromeos/services/machine_learning/public/cpp:unit_tests",
  22. "//chromeos/services/network_config:unit_tests",
  23. "//chromeos/services/tts:services_unittests",
  24. ]
  25. if (enable_cros_libassistant) {
  26. deps += [
  27. "//chromeos/services/libassistant:unit_tests",
  28. "//chromeos/services/libassistant/grpc:unit_tests",
  29. ]
  30. }
  31. }