1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- # Copyright 2017 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/ios/rules.gni")
- import("//ios/build/config.gni")
- import("//ios/web_view/features.gni")
- import("//testing/test.gni")
- source_set("inttests") {
- testonly = true
- sources = []
- # All those test files use framework import, thus they depend on the name
- # of the framework. If some bot build the framework with a different name,
- # their compilation fail. So only build those files if the framework has
- # not be renamed.
- if (ios_web_view_output_name == "ChromeWebView") {
- sources += [
- "navigation_delegate_inttest.mm",
- "scroll_view_kvo_inttest.mm",
- "ui_delegate_inttest.mm",
- "web_view_autofill_inttest.mm",
- "web_view_back_forward_list_inttest.mm",
- "web_view_from_wk_web_view_configuration_inttest.mm",
- "web_view_inttest.mm",
- "web_view_inttest_base.h",
- "web_view_inttest_base.mm",
- "web_view_kvo_inttest.mm",
- "web_view_restorable_state_inttest.mm",
- "web_view_script_command_inttest.mm",
- "web_view_script_message_handler_inttest.mm",
- ]
- }
- deps = [
- ":test_support",
- "//base",
- "//base/test:run_all_unittests",
- "//base/test:test_support",
- "//components/url_formatter",
- "//components/variations",
- "//components/variations:test_support",
- "//ios/third_party/webkit",
- "//ios/web/common:uikit",
- "//ios/web_view:web_view+link",
- "//net",
- "//net:test_support",
- "//testing/gtest",
- "//third_party/ocmock",
- ]
- configs += [ "//build/config/compiler:enable_arc" ]
- }
- source_set("test_support") {
- testonly = true
- sources = [
- # Explicitly reference imported headers from web_view library to avoid
- # depending on the framework (as it is statically linked).
- "//ios/web_view/public/cwv_export.h",
- "//ios/web_view/public/cwv_navigation_delegate.h",
- "//ios/web_view/public/cwv_navigation_type.h",
- "//ios/web_view/public/cwv_web_view.h",
- "//ios/web_view/public/cwv_web_view_configuration.h",
- "observer.h",
- "observer.mm",
- "test_with_locale_and_resources.cc",
- "test_with_locale_and_resources.h",
- "web_view_test_util.h",
- "web_view_test_util.mm",
- ]
- deps = [
- "//base:base",
- "//base/test:test_support",
- "//ios/third_party/webkit",
- "//testing/gtest",
- "//ui/base",
- ]
- configs += [ "//build/config/compiler:enable_arc" ]
- }
|