blob: 36d65a4d2266b2e72845b3983478b3665531e5e2 [file] [log] [blame]
Gauthier Ambarde685b2df2017-12-14 14:16:581# Copyright 2017 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
5source_set("popup") {
6 sources = [
7 "omnibox_popup_coordinator.h",
8 "omnibox_popup_coordinator.mm",
[email protected]4ef094072018-03-05 16:59:299 "omnibox_popup_mediator.h",
10 "omnibox_popup_mediator.mm",
11 "omnibox_popup_positioner.h",
12 "omnibox_popup_presenter.h",
13 "omnibox_popup_presenter.mm",
14 "omnibox_popup_provider.h",
15 "omnibox_popup_view_controller.h",
16 "omnibox_popup_view_controller.mm",
17 "omnibox_popup_view_ios.h",
18 "omnibox_popup_view_ios.mm",
19 "omnibox_popup_view_suggestions_delegate.h",
20 ]
21 deps = [
22 ":popup_internal",
23 "//base",
24 "//components/image_fetcher/ios",
25 "//components/omnibox/browser",
26 "//components/open_from_clipboard",
Gauthier Ambard900aca7b2018-12-10 17:28:0027 "//ios/chrome/app/strings",
[email protected]4ef094072018-03-05 16:59:2928 "//ios/chrome/browser",
29 "//ios/chrome/browser/browser_state",
30 "//ios/chrome/browser/ui:ui",
[email protected]93a05982018-03-14 15:40:1731 "//ios/chrome/browser/ui/commands",
[email protected]0b8f4b542018-10-02 15:17:1532 "//ios/chrome/browser/ui/ntp:util",
[email protected]4ef094072018-03-05 16:59:2933 "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared",
34 "//ios/chrome/browser/ui/omnibox:omnibox_util",
[email protected]46a8d7b92018-10-09 16:09:4035 "//ios/chrome/browser/ui/omnibox/popup/shortcuts",
[email protected]c8da8f82018-06-22 09:56:2336 "//ios/chrome/browser/ui/toolbar/buttons",
Mark Cogan02ed6c772018-05-31 17:00:5137 "//ios/chrome/browser/ui/toolbar/public:feature_flags",
[email protected]4ef094072018-03-05 16:59:2938 "//ios/chrome/browser/ui/toolbar/public:public",
Gauthier Ambarddb6a0332018-10-24 07:43:0839 "//ios/chrome/browser/ui/util",
[email protected]4ef094072018-03-05 16:59:2940 "//ios/chrome/browser/ui/util:util",
[email protected]0b8f4b542018-10-02 15:17:1541 "//ios/chrome/browser/web_state_list:web_state_list",
[email protected]4ef094072018-03-05 16:59:2942 "//ios/web/public:public",
43 "//net",
44 ]
45 configs += [ "//build/config/compiler:enable_arc" ]
46}
47
48source_set("popup_internal") {
49 sources = [
50 "omnibox_popup_row.h",
51 "omnibox_popup_row.mm",
[email protected]de350e42018-04-13 17:17:5752 "self_sizing_table_view.h",
53 "self_sizing_table_view.mm",
Gauthier Ambarde685b2df2017-12-14 14:16:5854 ]
55 deps = [
Gauthier Ambard2cc06f12018-10-12 09:59:5656 "resources:omnibox_popup_tab_match",
Gauthier Ambarde685b2df2017-12-14 14:16:5857 "//base",
58 "//components/image_fetcher/ios",
59 "//components/omnibox/browser",
[email protected]4ef094072018-03-05 16:59:2960 "//ios/chrome/app/theme:theme",
Gauthier Ambarde685b2df2017-12-14 14:16:5861 "//ios/chrome/browser/browser_state",
[email protected]4ef094072018-03-05 16:59:2962 "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared",
Gauthier Ambardd0a5d1f42018-12-03 12:20:5363 "//ios/chrome/browser/ui/toolbar/public",
Gauthier Ambarddb6a0332018-10-24 07:43:0864 "//ios/chrome/browser/ui/util",
[email protected]4ef094072018-03-05 16:59:2965 "//ios/chrome/browser/ui/util:util",
Gauthier Ambarde685b2df2017-12-14 14:16:5866 "//net",
67 ]
68 configs += [ "//build/config/compiler:enable_arc" ]
69}
[email protected]4da02a0f2018-10-02 13:18:1170
71source_set("unit_tests") {
72 configs += [ "//build/config/compiler:enable_arc" ]
73 testonly = true
74 sources = [
75 "omnibox_popup_view_controller_unittest.mm",
76 ]
77 deps = [
78 ":popup",
Gauthier Ambard2cc06f12018-10-12 09:59:5679 ":popup_internal",
[email protected]4da02a0f2018-10-02 13:18:1180 "//base",
Gauthier Ambard2cc06f12018-10-12 09:59:5681 "//components/omnibox/browser",
[email protected]4da02a0f2018-10-02 13:18:1182 "//ios/chrome/app/strings",
83 "//ios/chrome/browser",
Gauthier Ambard2cc06f12018-10-12 09:59:5684 "//ios/chrome/browser/ui/omnibox:omnibox_internal",
[email protected]4da02a0f2018-10-02 13:18:1185 "//testing/gtest",
86 "//ui/base",
87 ]
88}
Gauthier Ambard08100352018-11-23 15:26:5689
90source_set("eg_tests") {
91 testonly = true
92 sources = [
93 "omnibox_popup_egtest.mm",
94 ]
95 deps = [
96 ":popup_internal",
97 "//base",
98 "//base/test:test_support",
99 "//components/omnibox/browser",
100 "//ios/chrome/browser/ui:feature_flags",
Gauthier Ambarda49a188c22018-11-27 16:03:33101 "//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
Gauthier Ambard08100352018-11-23 15:26:56102 "//ios/chrome/browser/ui/tab_grid:egtest_support",
Gauthier Ambard54ecc1a2018-12-04 14:56:05103 "//ios/chrome/test/app:test_support",
Gauthier Ambard08100352018-11-23 15:26:56104 "//ios/chrome/test/earl_grey:test_support",
105 "//ios/testing/earl_grey:earl_grey_support",
106 "//ios/third_party/earl_grey:earl_grey+link",
107 "//testing/gmock",
108 ]
109 libs = [ "XCTest.framework" ]
110 configs += [ "//build/config/compiler:enable_arc" ]
111}