# 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("toolbar") { sources = [ "toolbar_coordinator.h", "toolbar_coordinator.mm", "toolbar_coordinator_delegate.h", "toolbar_mediator.h", "toolbar_mediator.mm", ] configs += [ "//build/config/compiler:enable_arc" ] deps = [ ":toolbar_ui", "//base", "//components/bookmarks/browser", "//components/strings", "//ios/chrome/browser", "//ios/chrome/browser/autocomplete", "//ios/chrome/browser/bookmarks", "//ios/chrome/browser/browser_state", "//ios/chrome/browser/reading_list", "//ios/chrome/browser/search_engines", "//ios/chrome/browser/ui", "//ios/chrome/browser/ui/bookmarks", "//ios/chrome/browser/ui/broadcaster", "//ios/chrome/browser/ui/browser_list", "//ios/chrome/browser/ui/commands", "//ios/chrome/browser/ui/commands", "//ios/chrome/browser/ui/coordinators", "//ios/chrome/browser/ui/fullscreen", "//ios/chrome/browser/ui/history_popup/requirements", "//ios/chrome/browser/ui/location_bar", "//ios/chrome/browser/ui/ntp:util", "//ios/chrome/browser/ui/omnibox", "//ios/chrome/browser/ui/omnibox:omnibox_internal", "//ios/chrome/browser/ui/omnibox/popup", "//ios/chrome/browser/ui/toolbar:toolbar_ui", "//ios/chrome/browser/ui/toolbar/buttons", "//ios/chrome/browser/ui/toolbar/keyboard_assist", "//ios/chrome/browser/ui/toolbar/public", "//ios/chrome/browser/ui/tools_menu", "//ios/chrome/browser/ui/tools_menu:configuration", "//ios/chrome/browser/ui/tools_menu/public", "//ios/chrome/browser/ui/voice", "//ios/chrome/browser/web_state_list", "//ios/chrome/common", "//ios/public/provider/chrome/browser", "//ios/public/provider/chrome/browser/images", "//ios/public/provider/chrome/browser/voice", "//ios/third_party/material_components_ios", "//ios/web", ] allow_circular_includes_from = [ "//ios/chrome/browser/ui/location_bar" ] } source_set("toolbar_ui") { sources = [ "toolbar_button_updater.h", "toolbar_button_updater.mm", "toolbar_consumer.h", "toolbar_view.h", "toolbar_view.mm", "toolbar_view_controller.h", "toolbar_view_controller.mm", ] deps = [ "//base", "//ios/chrome/app/theme", "//ios/chrome/browser/ui", "//ios/chrome/browser/ui/activity_services/requirements", "//ios/chrome/browser/ui/commands", "//ios/chrome/browser/ui/fullscreen:ui", "//ios/chrome/browser/ui/history_popup/requirements", "//ios/chrome/browser/ui/toolbar/buttons", "//ios/chrome/browser/ui/toolbar/public", "//ios/chrome/browser/ui/toolbar/public:toolbar_base_feature", "//ios/chrome/browser/ui/util", "//ios/chrome/browser/ui/voice", "//ios/chrome/common", "//ios/third_party/material_components_ios", ] libs = [ "UIKit.framework" ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("unit_tests") { testonly = true sources = [ "toolbar_mediator_unittest.mm", ] deps = [ ":toolbar", ":toolbar_ui", "//base", "//base/test:test_support", "//components/bookmarks/browser", "//components/bookmarks/test", "//components/search_engines", "//ios/chrome/browser/bookmarks", "//ios/chrome/browser/browser_state:test_support", "//ios/chrome/browser/search_engines", "//ios/chrome/browser/ui/toolbar/test", "//ios/chrome/browser/web_state_list", "//ios/chrome/browser/web_state_list:test_support", "//ios/chrome/test:test_support", "//ios/public/provider/chrome/browser:test_support", "//ios/public/provider/chrome/browser/images:test_support", "//ios/public/provider/chrome/browser/voice", "//ios/web", "//ios/web/public/test", "//ios/web/public/test/fakes", "//testing/gtest", "//third_party/ocmock", ] configs += [ "//build/config/compiler:enable_arc" ] }