1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
8 import("//build/config/android/config.gni")
11 component("test_runner") {
14 defines = [ "TEST_RUNNER_IMPLEMENTATION" ]
17 "accessibility_controller.cc",
18 "accessibility_controller.h",
19 "app_banner_client.cc",
20 "app_banner_client.h",
23 "gamepad_controller.cc",
24 "gamepad_controller.h",
25 "mock_color_chooser.cc",
26 "mock_color_chooser.h",
27 "mock_constraints.cc",
29 "mock_credential_manager_client.cc",
30 "mock_credential_manager_client.h",
31 "mock_grammar_check.cc",
32 "mock_grammar_check.h",
33 "mock_screen_orientation_client.cc",
34 "mock_screen_orientation_client.h",
35 "mock_spell_check.cc",
37 "mock_web_audio_device.cc",
38 "mock_web_audio_device.h",
39 "mock_web_media_stream_center.cc",
40 "mock_web_media_stream_center.h",
41 "mock_web_midi_accessor.cc",
42 "mock_web_midi_accessor.h",
43 "mock_web_speech_recognizer.cc",
44 "mock_web_speech_recognizer.h",
45 "mock_web_theme_engine.cc",
46 "mock_web_theme_engine.h",
47 "mock_web_user_media_client.cc",
48 "mock_web_user_media_client.h",
49 "mock_webrtc_data_channel_handler.cc",
50 "mock_webrtc_data_channel_handler.h",
51 "mock_webrtc_dtmf_sender_handler.cc",
52 "mock_webrtc_dtmf_sender_handler.h",
53 "mock_webrtc_peer_connection_handler.cc",
54 "mock_webrtc_peer_connection_handler.h",
55 "spell_check_client.cc",
56 "spell_check_client.h",
59 "test_info_extractor.cc",
60 "test_info_extractor.h",
65 "test_preferences.cc",
69 "test_runner_export.h",
70 "text_input_controller.cc",
71 "text_input_controller.h",
72 "web_ax_object_proxy.cc",
73 "web_ax_object_proxy.h",
74 "web_content_settings.cc",
75 "web_content_settings.h",
76 "web_frame_test_proxy.h",
79 "web_test_delegate.h",
80 "web_test_interfaces.cc",
81 "web_test_interfaces.h",
87 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
88 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
100 "//third_party/WebKit/public:blink",
101 "//ui/events:dom_keycode_converter",
102 "//ui/events:events_base",
108 #'copy_test_netscape_plugin', TODO(GYP)
115 visibility = [ ":*" ]
117 "resources/fonts/AHEM____.TTF",
120 "$root_out_dir/AHEM____.TTF",
125 copy("copy_x11_fonts") {
126 visibility = [ ":*" ]
128 "//third_party/gardiner_mod/GardinerModBug.ttf",
129 "//third_party/gardiner_mod/GardinerModCat.ttf",
130 "resources/fonts/fonts.conf",
133 "$root_out_dir/{{source_file_part}}",
138 copy("copy_android_fonts") {
139 visibility = [ ":*" ]
141 "resources/fonts/android_fallback_fonts.xml",
142 "resources/fonts/android_main_fonts.xml",
145 "$root_out_dir/{{source_file_part}}",
154 # TODO(GYP) Mac bundle resources.
155 #'all_dependent_settings': {
156 # 'mac_bundle_resources': [
157 # 'resources/fonts/AHEM____.TTF',
158 # 'resources/fonts/ChromiumAATTest.ttf',
159 # '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
160 # '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
164 deps += [ ":copy_ahem" ]
168 deps += [ ":copy_x11_fonts" ]
171 deps += [ ":copy_android_fonts" ]
175 if (is_mac || is_win) {
176 # GYP version: components/test_runner/test_runner.gyp:layout_test_helper
177 executable("layout_test_helper") {
179 "helper/layout_test_helper_mac.mm",
180 "helper/layout_test_helper_win.cc",
184 libs = [ "AppKit.framework" ]
188 "//build/config/sanitizers:deps",