summaryrefslogtreecommitdiff
path: root/chromium/ui/arc/BUILD.gn
blob: ecc44786636dcf43a9b6ab8ab3cde5e096ae646b (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Copyright 2016 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("//testing/test.gni")

static_library("arc") {
  sources = [
    "notification/arc_notification_content_view.cc",
    "notification/arc_notification_content_view.h",
    "notification/arc_notification_delegate.cc",
    "notification/arc_notification_delegate.h",
    "notification/arc_notification_item.h",
    "notification/arc_notification_item_impl.cc",
    "notification/arc_notification_item_impl.h",
    "notification/arc_notification_manager.cc",
    "notification/arc_notification_manager.h",
    "notification/arc_notification_surface.h",
    "notification/arc_notification_surface_impl.cc",
    "notification/arc_notification_surface_impl.h",
    "notification/arc_notification_surface_manager.cc",
    "notification/arc_notification_surface_manager.h",
    "notification/arc_notification_surface_manager_impl.cc",
    "notification/arc_notification_surface_manager_impl.h",
    "notification/arc_notification_view.cc",
    "notification/arc_notification_view.h",
  ]

  deps = [
    "//ash",
    "//base",
    "//components/arc:arc_base",
    "//components/exo",
    "//components/keyed_service/content:content",
    "//components/signin/core/account_id",
    "//mojo/public/cpp/system",
    "//skia",
    "//ui/accessibility",
    "//ui/aura",
    "//ui/base",
    "//ui/compositor",
    "//ui/display",
    "//ui/events",
    "//ui/gfx",
    "//ui/message_center",
    "//ui/message_center/public/cpp",
    "//ui/resources",
    "//ui/strings",
    "//ui/views",
    "//ui/wm",
  ]
}

static_library("test_support") {
  testonly = true
  sources = [
    "notification/mock_arc_notification_item.cc",
    "notification/mock_arc_notification_item.h",
  ]

  deps = [
    ":arc",
    "//ui/gl:test_support",
  ]
}

test("ui_arc_unittests") {
  testonly = true
  sources = [
    "notification/arc_notification_content_view_unittest.cc",
    "notification/arc_notification_manager_unittest.cc",
    "notification/arc_notification_view_unittest.cc",
    "test/run_all_unittests.cc",
  ]

  deps = [
    ":arc",
    ":test_support",
    "//ash:test_support_without_content",
    "//base",
    "//base/test:test_support",
    "//components/arc:arc_test_support",
    "//components/exo",
    "//components/exo:test_support",
    "//mojo/edk",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/aura:test_support",
    "//ui/base:test_support",
    "//ui/events:test_support",
    "//ui/gl:test_support",
    "//ui/message_center:test_support",
    "//ui/views",
    "//ui/views:test_support",
  ]

  data_deps = [
    "//ui/resources:ui_test_pak_data",
  ]
}