OLD | NEW |
| (Empty) |
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. | |
4 | |
5 import("//build/config/features.gni") | |
6 import("//build/config/ui.gni") | |
7 if (is_android) { | |
8 import("//build/config/android/config.gni") | |
9 } | |
10 | |
11 component("test_runner") { | |
12 testonly = true | |
13 | |
14 defines = [ "TEST_RUNNER_IMPLEMENTATION" ] | |
15 | |
16 sources = [ | |
17 "accessibility_controller.cc", | |
18 "accessibility_controller.h", | |
19 "app_banner_service.cc", | |
20 "app_banner_service.h", | |
21 "event_sender.cc", | |
22 "event_sender.h", | |
23 "gamepad_controller.cc", | |
24 "gamepad_controller.h", | |
25 "gc_controller.cc", | |
26 "gc_controller.h", | |
27 "layout_and_paint_async_then.cc", | |
28 "layout_and_paint_async_then.h", | |
29 "layout_dump.cc", | |
30 "layout_dump.h", | |
31 "layout_test_runtime_flags.cc", | |
32 "layout_test_runtime_flags.h", | |
33 "mock_color_chooser.cc", | |
34 "mock_color_chooser.h", | |
35 "mock_content_settings_client.cc", | |
36 "mock_content_settings_client.h", | |
37 "mock_credential_manager_client.cc", | |
38 "mock_credential_manager_client.h", | |
39 "mock_grammar_check.cc", | |
40 "mock_grammar_check.h", | |
41 "mock_screen_orientation_client.cc", | |
42 "mock_screen_orientation_client.h", | |
43 "mock_spell_check.cc", | |
44 "mock_spell_check.h", | |
45 "mock_web_audio_device.cc", | |
46 "mock_web_audio_device.h", | |
47 "mock_web_document_subresource_filter.cc", | |
48 "mock_web_document_subresource_filter.h", | |
49 "mock_web_media_stream_center.cc", | |
50 "mock_web_media_stream_center.h", | |
51 "mock_web_midi_accessor.cc", | |
52 "mock_web_midi_accessor.h", | |
53 "mock_web_speech_recognizer.cc", | |
54 "mock_web_speech_recognizer.h", | |
55 "mock_web_theme_engine.cc", | |
56 "mock_web_theme_engine.h", | |
57 "mock_web_user_media_client.cc", | |
58 "mock_web_user_media_client.h", | |
59 "mock_webrtc_data_channel_handler.cc", | |
60 "mock_webrtc_data_channel_handler.h", | |
61 "mock_webrtc_dtmf_sender_handler.cc", | |
62 "mock_webrtc_dtmf_sender_handler.h", | |
63 "mock_webrtc_peer_connection_handler.cc", | |
64 "mock_webrtc_peer_connection_handler.h", | |
65 "pixel_dump.cc", | |
66 "pixel_dump.h", | |
67 "spell_check_client.cc", | |
68 "spell_check_client.h", | |
69 "test_common.cc", | |
70 "test_common.h", | |
71 "test_interfaces.cc", | |
72 "test_interfaces.h", | |
73 "test_plugin.cc", | |
74 "test_plugin.h", | |
75 "test_preferences.cc", | |
76 "test_preferences.h", | |
77 "test_runner.cc", | |
78 "test_runner.h", | |
79 "test_runner_export.h", | |
80 "test_runner_for_specific_view.cc", | |
81 "test_runner_for_specific_view.h", | |
82 "text_input_controller.cc", | |
83 "text_input_controller.h", | |
84 "tracked_dictionary.cc", | |
85 "tracked_dictionary.h", | |
86 "web_ax_object_proxy.cc", | |
87 "web_ax_object_proxy.h", | |
88 "web_frame_test_client.cc", | |
89 "web_frame_test_client.h", | |
90 "web_frame_test_proxy.cc", | |
91 "web_frame_test_proxy.h", | |
92 "web_test_delegate.h", | |
93 "web_test_interfaces.cc", | |
94 "web_test_interfaces.h", | |
95 "web_test_runner.h", | |
96 "web_view_test_client.cc", | |
97 "web_view_test_client.h", | |
98 "web_view_test_proxy.cc", | |
99 "web_view_test_proxy.h", | |
100 "web_widget_test_client.cc", | |
101 "web_widget_test_client.h", | |
102 "web_widget_test_proxy.cc", | |
103 "web_widget_test_proxy.h", | |
104 ] | |
105 | |
106 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
107 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
108 | |
109 deps = [ | |
110 ":resources", | |
111 "//base:base", | |
112 "//base:i18n", | |
113 "//cc", | |
114 "//cc/blink", | |
115 "//cc/paint", | |
116 "//content/public/common", | |
117 "//gin", | |
118 "//gpu", | |
119 "//gpu/command_buffer/client:gles2_interface", | |
120 "//media/midi:mojo", | |
121 "//net", | |
122 "//skia", | |
123 "//third_party/WebKit/public:blink", | |
124 "//ui/display", | |
125 "//ui/events:dom_keycode_converter", | |
126 "//ui/events:events_base", | |
127 "//ui/events/blink", | |
128 "//ui/gfx", | |
129 "//ui/gfx:test_support", | |
130 "//ui/gfx/geometry", | |
131 "//url", | |
132 "//v8", | |
133 ] | |
134 | |
135 data_deps = [ | |
136 ":resources", | |
137 ] | |
138 | |
139 if (is_mac) { | |
140 libs = [ "AppKit.framework" ] | |
141 } | |
142 } | |
143 | |
144 # Font copies. | |
145 if (!is_mac) { | |
146 copy("copy_ahem") { | |
147 visibility = [ ":*" ] | |
148 sources = [ | |
149 "resources/fonts/AHEM____.TTF", | |
150 ] | |
151 outputs = [ | |
152 "$root_out_dir/AHEM____.TTF", | |
153 ] | |
154 } | |
155 } | |
156 if (use_x11) { | |
157 copy("copy_x11_fonts") { | |
158 visibility = [ ":*" ] | |
159 sources = [ | |
160 "//third_party/gardiner_mod/GardinerModBug.ttf", | |
161 "//third_party/gardiner_mod/GardinerModCat.ttf", | |
162 "resources/fonts/fonts.conf", | |
163 ] | |
164 outputs = [ | |
165 "$root_out_dir/{{source_file_part}}", | |
166 ] | |
167 } | |
168 } | |
169 if (is_android) { | |
170 copy("copy_android_fonts") { | |
171 visibility = [ ":*" ] | |
172 sources = [ | |
173 "resources/fonts/android_fallback_fonts.xml", | |
174 "resources/fonts/android_main_fonts.xml", | |
175 ] | |
176 outputs = [ | |
177 "$root_out_dir/{{source_file_part}}", | |
178 ] | |
179 } | |
180 } | |
181 if (is_mac) { | |
182 bundle_data("test_runner_bundle_data") { | |
183 sources = [ | |
184 "resources/fonts/AHEM____.TTF", | |
185 "resources/fonts/ChromiumAATTest.ttf", | |
186 ] | |
187 | |
188 outputs = [ | |
189 "{{bundle_resources_dir}}/{{source_file_part}}", | |
190 ] | |
191 } | |
192 } | |
193 | |
194 group("resources") { | |
195 deps = [] | |
196 data_deps = [] | |
197 | |
198 if (is_mac) { | |
199 deps += [ ":test_runner_bundle_data" ] | |
200 data_deps += [ ":test_runner_bundle_data" ] | |
201 } else { | |
202 deps += [ ":copy_ahem" ] | |
203 data_deps += [ ":copy_ahem" ] | |
204 } | |
205 | |
206 if (use_x11) { | |
207 deps += [ ":copy_x11_fonts" ] | |
208 data_deps += [ ":copy_x11_fonts" ] | |
209 } | |
210 if (is_android) { | |
211 deps += [ ":copy_android_fonts" ] | |
212 data_deps += [ ":copy_android_fonts" ] | |
213 } | |
214 } | |
OLD | NEW |