| # Copyright 2017 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("popup") { |
| sources = [ |
| "omnibox_popup_coordinator.h", |
| "omnibox_popup_coordinator.mm", |
| "omnibox_popup_mediator.h", |
| "omnibox_popup_mediator.mm", |
| "omnibox_popup_positioner.h", |
| "omnibox_popup_presenter.h", |
| "omnibox_popup_presenter.mm", |
| "omnibox_popup_provider.h", |
| "omnibox_popup_view_controller.h", |
| "omnibox_popup_view_controller.mm", |
| "omnibox_popup_view_ios.h", |
| "omnibox_popup_view_ios.mm", |
| "omnibox_popup_view_suggestions_delegate.h", |
| ] |
| deps = [ |
| ":popup_internal", |
| "//base", |
| "//components/image_fetcher/ios", |
| "//components/omnibox/browser", |
| "//components/open_from_clipboard", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/ui:ui", |
| "//ios/chrome/browser/ui/commands", |
| "//ios/chrome/browser/ui/ntp:util", |
| "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
| "//ios/chrome/browser/ui/omnibox:omnibox_util", |
| "//ios/chrome/browser/ui/omnibox/popup/shortcuts", |
| "//ios/chrome/browser/ui/toolbar/buttons", |
| "//ios/chrome/browser/ui/toolbar/public:feature_flags", |
| "//ios/chrome/browser/ui/toolbar/public:public", |
| "//ios/chrome/browser/ui/util", |
| "//ios/chrome/browser/ui/util:util", |
| "//ios/chrome/browser/web_state_list:web_state_list", |
| "//ios/web/public:public", |
| "//net", |
| ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| } |
| |
| source_set("popup_internal") { |
| sources = [ |
| "omnibox_popup_row.h", |
| "omnibox_popup_row.mm", |
| "self_sizing_table_view.h", |
| "self_sizing_table_view.mm", |
| ] |
| deps = [ |
| "resources:omnibox_popup_tab_match", |
| "//base", |
| "//components/image_fetcher/ios", |
| "//components/omnibox/browser", |
| "//ios/chrome/app/theme:theme", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
| "//ios/chrome/browser/ui/toolbar/public", |
| "//ios/chrome/browser/ui/util", |
| "//ios/chrome/browser/ui/util:util", |
| "//net", |
| ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "omnibox_popup_view_controller_unittest.mm", |
| ] |
| deps = [ |
| ":popup", |
| ":popup_internal", |
| "//base", |
| "//components/omnibox/browser", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/ui/omnibox:omnibox_internal", |
| "//testing/gtest", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("eg_tests") { |
| testonly = true |
| sources = [ |
| "omnibox_popup_egtest.mm", |
| ] |
| deps = [ |
| ":popup_internal", |
| "//base", |
| "//base/test:test_support", |
| "//components/omnibox/browser", |
| "//ios/chrome/browser/ui:feature_flags", |
| "//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant", |
| "//ios/chrome/browser/ui/tab_grid:egtest_support", |
| "//ios/chrome/test/app:test_support", |
| "//ios/chrome/test/earl_grey:test_support", |
| "//ios/testing/earl_grey:earl_grey_support", |
| "//ios/third_party/earl_grey:earl_grey+link", |
| "//testing/gmock", |
| ] |
| libs = [ "XCTest.framework" ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| } |