cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / test_runner / BUILD.gn
blobbb1e95a7583b69db346215299597ad90d9acd961
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")
7 if (is_android) {
8   import("//build/config/android/config.gni")
11 component("test_runner") {
12   testonly = true
14   defines = [ "TEST_RUNNER_IMPLEMENTATION" ]
16   sources = [
17     "accessibility_controller.cc",
18     "accessibility_controller.h",
19     "app_banner_client.cc",
20     "app_banner_client.h",
21     "event_sender.cc",
22     "event_sender.h",
23     "gamepad_controller.cc",
24     "gamepad_controller.h",
25     "mock_color_chooser.cc",
26     "mock_color_chooser.h",
27     "mock_constraints.cc",
28     "mock_constraints.h",
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",
36     "mock_spell_check.h",
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",
57     "test_common.cc",
58     "test_common.h",
59     "test_interfaces.cc",
60     "test_interfaces.h",
61     "test_plugin.cc",
62     "test_plugin.h",
63     "test_preferences.cc",
64     "test_preferences.h",
65     "test_runner.cc",
66     "test_runner.h",
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",
75     "web_task.cc",
76     "web_task.h",
77     "web_test_delegate.h",
78     "web_test_interfaces.cc",
79     "web_test_interfaces.h",
80     "web_test_proxy.cc",
81     "web_test_proxy.h",
82     "web_test_runner.h",
83   ]
85   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
86   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
88   deps = [
89     ":resources",
90     "//base:base",
91     "//base:i18n",
92     "//cc",
93     "//cc/blink",
94     "//gin",
95     "//gpu",
96     "//skia",
97     "//third_party/WebKit/public:blink",
98     "//ui/events:dom_keycode_converter",
99     "//ui/events:events_base",
100     "//ui/gfx",
101     "//ui/gfx/geometry",
102     "//url",
103     "//v8",
105     #'copy_test_netscape_plugin',  TODO(GYP)
106   ]
109 # Font copies.
110 if (!is_mac) {
111   copy("copy_ahem") {
112     visibility = [ ":*" ]
113     sources = [
114       "resources/fonts/AHEM____.TTF",
115     ]
116     outputs = [
117       "$root_out_dir/AHEM____.TTF",
118     ]
119   }
121 if (use_x11) {
122   copy("copy_x11_fonts") {
123     visibility = [ ":*" ]
124     sources = [
125       "//third_party/gardiner_mod/GardinerModBug.ttf",
126       "//third_party/gardiner_mod/GardinerModCat.ttf",
127       "resources/fonts/fonts.conf",
128     ]
129     outputs = [
130       "$root_out_dir/{{source_file_part}}",
131     ]
132   }
134 if (is_android) {
135   copy("copy_android_fonts") {
136     visibility = [ ":*" ]
137     sources = [
138       "resources/fonts/android_fallback_fonts.xml",
139       "resources/fonts/android_main_fonts.xml",
140     ]
141     outputs = [
142       "$root_out_dir/{{source_file_part}}",
143     ]
144   }
147 group("resources") {
148   deps = []
150   if (is_mac) {
151     # TODO(GYP) Mac bundle resources.
152     #'all_dependent_settings': {
153     #  'mac_bundle_resources': [
154     #    'resources/fonts/AHEM____.TTF',
155     #    'resources/fonts/ChromiumAATTest.ttf',
156     #    '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
157     #    '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
158     #  ],
159     #},
160   } else {
161     deps += [ ":copy_ahem" ]
162   }
164   if (use_x11) {
165     deps += [ ":copy_x11_fonts" ]
166   }
167   if (is_android) {
168     deps += [ ":copy_android_fonts" ]
169   }
172 if (is_mac || is_win) {
173   # GYP version: components/test_runner/test_runner.gyp:layout_test_helper
174   executable("layout_test_helper") {
175     sources = [
176       "helper/layout_test_helper_mac.mm",
177       "helper/layout_test_helper_win.cc",
178     ]
180     if (is_mac) {
181       libs = [ "AppKit.framework" ]
182     }
184     deps = [
185       "//build/config/sanitizers:deps",
186     ]
187   }