blob: 0297f2aa1f35ac99330a3483d2f0a578e2ccf97e [file] [log] [blame]
# 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.
source_set("link_to_text") {
sources = [
"link_to_text_consumer.h",
"link_to_text_delegate.h",
"link_to_text_mediator.h",
"link_to_text_mediator.mm",
]
deps = [
"//components/shared_highlighting/core/common",
"//ios/chrome/browser/link_to_text",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/web_state_list",
"//ios/web/public",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [ "link_to_text_mediator_unittest.mm" ]
deps = [
":link_to_text",
"//base",
"//base/test:test_support",
"//components/shared_highlighting/core/common",
"//components/ukm:test_support",
"//components/ukm/ios:ukm_url_recorder",
"//ios/chrome/browser/link_to_text",
"//ios/chrome/browser/link_to_text:internal",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/web_state_list",
"//ios/web/public/test",
"//testing/gtest",
"//third_party/ocmock",
]
}
source_set("eg2_tests") {
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [ "link_to_text_egtest.mm" ]
deps = [
"//base",
"//base/test:test_support",
"//components/shared_highlighting/core/common",
"//ios/chrome/app/strings:ios_strings_grit",
"//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",
"//ios/web/common:features",
"//ios/web/public/navigation:navigation",
"//ios/web/public/test:element_selector",
"//ios/web/public/test/http_server",
"//net",
"//net:test_support",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}