| # Copyright 2016 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("find_in_page") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "abstract_find_tab_helper.h", |
| "abstract_find_tab_helper.mm", |
| "constants.h", |
| "constants.mm", |
| "find_in_page_controller.h", |
| "find_in_page_controller.mm", |
| "find_in_page_model.h", |
| "find_in_page_model.mm", |
| "find_in_page_response_delegate.h", |
| "find_tab_helper.h", |
| "find_tab_helper.mm", |
| "java_script_find_in_page_controller.h", |
| "java_script_find_in_page_controller.mm", |
| "java_script_find_tab_helper.h", |
| "java_script_find_tab_helper.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/strings:components_strings_grit", |
| "//components/ukm/ios:ukm_url_recorder", |
| "//ios/chrome/browser/ntp", |
| "//ios/chrome/browser/web", |
| "//ios/public/provider/chrome/browser/find_in_page:find_in_page_api", |
| "//ios/web/public", |
| "//ios/web/public/find_in_page", |
| "//services/metrics/public/cpp:ukm_builders", |
| ] |
| frameworks = [ "CoreGraphics.framework" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ "java_script_find_in_page_controller_unittest.mm" ] |
| deps = [ |
| ":find_in_page", |
| "//base", |
| "//base/test:test_support", |
| "//components/ukm:test_support", |
| "//components/ukm/ios:ukm_url_recorder", |
| "//ios/chrome/browser/shared/model/browser_state:test_support", |
| "//ios/chrome/browser/web:web_internal", |
| "//ios/web/public/test:test", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("features") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "features.h", |
| "features.mm", |
| ] |
| public_deps = [ "//base:base" ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "find_in_page_egtest.mm", |
| "find_in_page_egtest_util.h", |
| "find_in_page_egtest_util.mm", |
| ] |
| deps = [ |
| ":eg_test_support+eg2", |
| "//ios/chrome/browser/find_in_page:features", |
| "//ios/chrome/browser/ui/find_bar:constants", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/web/public/test:element_selector", |
| "//ios/web/public/test/http_server:http_server", |
| "//net:test_support", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("eg_app_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "find_in_page_app_interface.h", |
| "find_in_page_app_interface.mm", |
| ] |
| deps = [ ":find_in_page" ] |
| } |
| |
| source_set("eg_test_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "find_in_page_app_interface.h", |
| "find_in_page_app_interface_stub.mm", |
| ] |
| deps = [ "//ios/testing/earl_grey:eg_test_support+eg2" ] |
| } |