summaryrefslogtreecommitdiff
path: root/chromium/ash/components/BUILD.gn
blob: 6889ea4d2ce62e58918527a4115769834c5cf681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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("//build/config/ui.gni")
import("//testing/test.gni")

assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //ash")

# To add a unit test to this target, make a "unit_test" source_set in your
# component and add a reference here.
test("ash_components_unittests") {
  use_xvfb = use_xvfb_in_this_config

  sources = [
    "test/ash_components_test_suite.cc",
    "test/ash_components_test_suite.h",
    "test/run_all_unittests.cc",
  ]

  deps = [
    "//ash/components/arc:unit_tests",
    "//ash/components/arc/mojom:unit_tests",
    "//ash/components/arc/session:unit_tests",
    "//ash/components/fwupd:unit_tests",
    "//ash/components/peripheral_notification:unit_tests",
    "//ash/components/phonehub:unit_tests",
    "//ash/strings",
    "//base/test:test_support",
    "//mojo/core/embedder",
    "//ui/aura",
    "//ui/gl:test_support",
    "//ui/lottie",
  ]

  data_deps = [
    "//ash/resources:ash_test_resources_100_percent",
    "//chromeos/strings:chromeos_test_strings",
    "//ui/resources:ui_test_pak_data",
  ]
}