| # Copyright 2020 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. |
| |
| import("//build/config/chrome_build.gni") |
| |
| source_set("thumb_strip") { |
| sources = [ |
| "thumb_strip_attacher.h", |
| "thumb_strip_coordinator.h", |
| "thumb_strip_coordinator.mm", |
| "thumb_strip_mediator.h", |
| "thumb_strip_mediator.mm", |
| ] |
| deps = [ |
| "//base", |
| "//ios/chrome/browser/main:public", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| "//ios/chrome/browser/ui/gestures", |
| "//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_ui_constants", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/web/public", |
| "//ios/web/public/ui", |
| ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| } |
| |
| source_set("feature_flags") { |
| sources = [ |
| "thumb_strip_feature.h", |
| "thumb_strip_feature.mm", |
| ] |
| deps = [ |
| "//base", |
| "//ios/chrome/browser/ui:feature_flags", |
| "//ios/chrome/browser/ui/util", |
| ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| } |
| |
| source_set("eg2_tests") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ "thumb_strip_egtest.mm" ] |
| deps = [ |
| ":feature_flags", |
| "//base", |
| "//base/test:test_support", |
| "//ios/chrome/browser/ui:feature_flags", |
| "//ios/chrome/test:eg_test_support+eg2", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/third_party/earl_grey2:test_lib", |
| "//net:test_support", |
| "//url", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |