summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/ui/infobars/BUILD.gn
blob: 8d3618aa3e8c694af75d5666cffd3ccc3ee146f4 (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
# 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.

source_set("infobars") {
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "infobar_view.h",
    "infobar_view.mm",
    "infobar_view_delegate.h",
  ]
  deps = [
    "resources:infobar_close",
    "resources:infobar_downloading",
    "resources:infobar_popup_blocker",
    "resources:infobar_shadow",
    "resources:infobar_warning",
    "//base",
    "//base:i18n",
    "//components/strings",
    "//ios/chrome/browser/ui",
    "//ios/chrome/browser/ui/colors",
    "//ios/chrome/browser/ui/fancy_ui",
    "//ios/chrome/browser/ui/util",
    "//ios/public/provider/chrome/browser/ui",
    "//ios/third_party/material_components_ios",
    "//ui/base",
    "//ui/gfx",
    "//url",
  ]
  libs = [
    "CoreGraphics.framework",
    "QuartzCore.framework",
    "UIKit.framework",
  ]
}

source_set("unit_tests") {
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [
    "infobar_view_unittest.mm",
  ]
  deps = [
    ":infobars",
    "//testing/gtest",
  ]
}

source_set("test_support") {
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [
    "test_infobar_delegate.h",
    "test_infobar_delegate.mm",
  ]
  deps = [
    "//base",
    "//components/infobars/core",
  ]
}

source_set("eg_tests") {
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [
    "infobar_egtest.mm",
  ]
  deps = [
    ":test_support",
    "//base",
    "//components/infobars/core",
    "//ios/chrome/app:app_internal",
    "//ios/chrome/browser/infobars",
    "//ios/chrome/browser/tabs",
    "//ios/chrome/test/app:test_support",
    "//ios/chrome/test/earl_grey:test_support",
    "//ios/third_party/earl_grey:earl_grey+link",
    "//ios/web/public/test/http_server",
    "//url",
  ]
  libs = [ "XCTest.framework" ]
}