summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/overlays/BUILD.gn
blob: 0985ace754e5f2b5033e58ffde3b0b8908f3e720 (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
# Copyright 2019 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("overlays") {
  public = [
    "public/overlay_dismissal_callback.h",
    "public/overlay_modality.h",
    "public/overlay_presentation_context.h",
    "public/overlay_presentation_context_observer.h",
    "public/overlay_presenter.h",
    "public/overlay_presenter_observer.h",
    "public/overlay_request.h",
    "public/overlay_request_queue.h",
    "public/overlay_response.h",
    "public/overlay_user_data.h",
  ]
  sources = [
    "overlay_presenter_impl.h",
    "overlay_presenter_impl.mm",
    "overlay_request_impl.cc",
    "overlay_request_impl.h",
    "overlay_request_queue_impl.h",
    "overlay_request_queue_impl.mm",
    "overlay_response_impl.cc",
    "overlay_response_impl.h",
  ]

  configs += [ "//build/config/compiler:enable_arc" ]

  friend = [ ":unit_tests" ]

  deps = [
    "//base",
    "//ios/chrome/browser/main",
    "//ios/chrome/browser/web_state_list",
    "//ios/web/public",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "overlay_presenter_impl_unittest.mm",
    "overlay_request_impl_unittest.cc",
    "overlay_request_queue_impl_unittest.mm",
    "overlay_request_unittest.cc",
    "overlay_response_unittest.cc",
  ]

  configs += [ "//build/config/compiler:enable_arc" ]

  deps = [
    ":overlays",
    "//base/test:test_support",
    "//ios/chrome/browser/browser_state:test_support",
    "//ios/chrome/browser/main",
    "//ios/chrome/browser/main:test_support",
    "//ios/chrome/browser/overlays/test",
    "//ios/chrome/browser/web_state_list",
    "//ios/chrome/browser/web_state_list:test_support",
    "//ios/web/public",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gmock",
    "//testing/gtest",
  ]
}