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",
63 "test_preferences.cc",
67 "test_runner_export.h",
68 "text_input_controller.cc",
69 "text_input_controller.h",
70 "web_ax_object_proxy.cc",
71 "web_ax_object_proxy.h",
72 "web_content_settings.cc",
73 "web_content_settings.h",
74 "web_frame_test_proxy.h",
77 "web_test_delegate.h",
78 "web_test_interfaces.cc",
79 "web_test_interfaces.h",
85 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
86 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
96 "//third_party/WebKit/public:blink",
97 "//ui/events:dom_keycode_converter",
98 "//ui/events:events_base",
104 #'copy_test_netscape_plugin', TODO(GYP)
111 visibility = [ ":*" ]
113 "resources/fonts/AHEM____.TTF",
116 "$root_out_dir/AHEM____.TTF",
121 copy("copy_x11_fonts") {
122 visibility = [ ":*" ]
124 "//third_party/gardiner_mod/GardinerModBug.ttf",
125 "//third_party/gardiner_mod/GardinerModCat.ttf",
126 "resources/fonts/fonts.conf",
129 "$root_out_dir/{{source_file_part}}",
134 copy("copy_android_fonts") {
135 visibility = [ ":*" ]
137 "resources/fonts/android_fallback_fonts.xml",
138 "resources/fonts/android_main_fonts.xml",
141 "$root_out_dir/{{source_file_part}}",
150 # TODO(GYP) Mac bundle resources.
151 #'all_dependent_settings': {
152 # 'mac_bundle_resources': [
153 # 'resources/fonts/AHEM____.TTF',
154 # 'resources/fonts/ChromiumAATTest.ttf',
155 # '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
156 # '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
160 deps += [ ":copy_ahem" ]
164 deps += [ ":copy_x11_fonts" ]
167 deps += [ ":copy_android_fonts" ]
171 if (is_mac || is_win) {
172 # GYP version: components/test_runner/test_runner.gyp:layout_test_helper
173 executable("layout_test_helper") {
175 "helper/layout_test_helper_mac.mm",
176 "helper/layout_test_helper_win.cc",
180 libs = [ "AppKit.framework" ]