blob: e76a18190a1c14df6652921e96004d0c8e8aad25 [file] [log] [blame]
# 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("open_in_ui") {
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:disable_implicit_retain_self_warning",
]
sources = [
"open_in_controller.h",
"open_in_controller.mm",
"open_in_controller_testing.h",
"open_in_toolbar.h",
"open_in_toolbar.mm",
]
deps = [
"//base",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/main:public",
"//ios/chrome/browser/open_in",
"//ios/chrome/browser/ui/alert_coordinator",
"//ios/chrome/browser/ui/colors",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/util",
"//ios/web/public",
"//ui/base",
"//url",
]
}
source_set("open_in") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"open_in_coordinator.h",
"open_in_coordinator.mm",
"open_in_mediator.h",
"open_in_mediator.mm",
]
deps = [
":open_in_ui",
"//base",
"//ios/chrome/browser/main:public",
"//ios/chrome/browser/open_in",
"//ios/chrome/browser/ui/coordinators:chrome_coordinators",
"//ios/chrome/browser/web_state_list",
"//ios/web/public",
"//net",
"//services/network/public/cpp",
"//ui/base",
"//ui/gfx",
"//url",
]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"open_in_controller_unittest.mm",
"open_in_mediator_unittest.mm",
"open_in_toolbar_unittest.mm",
]
deps = [
":open_in",
":open_in_ui",
"//ios/chrome/browser/browser_state:test_support",
"//ios/chrome/browser/main:test_support",
"//ios/chrome/browser/web_state_list",
"//ios/chrome/browser/web_state_list:test_support",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//net",
"//net:test_support",
"//services/network:test_support",
"//services/network/public/cpp",
"//testing/gtest",
"//third_party/ocmock",
]
}
source_set("eg2_tests") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [ "open_in_controller_egtest.mm" ]
deps = [
"//base",
"//ios/chrome/app/strings",
"//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",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}