blob: 334706370a57016a53be2b4914ae2c637929b877 [file] [log] [blame]
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("text_fragments") {
sources = [
"text_fragments_coordinator.h",
"text_fragments_coordinator.mm",
"text_fragments_mediator.h",
"text_fragments_mediator.mm",
]
deps = [
"//components/shared_highlighting/core/common",
"//components/shared_highlighting/ios",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/coordinator/alert",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/public/commands:commands",
"//ios/chrome/browser/web_state_list",
"//ios/web/public/text_fragments",
"//ui/base:base",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("eg2_tests") {
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [ "text_fragments_egtest.mm" ]
deps = [
"//base",
"//base/test:test_support",
"//components/shared_highlighting/core/common",
"//components/shared_highlighting/ios",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/public/features",
"//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/web/common:features",
"//ios/web/public/test:element_selector",
"//ios/web/public/test/http_server",
"//net:test_support",
"//ui/base:base",
]
frameworks = [ "UIKit.framework" ]
}