Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: ui/views/mus/BUILD.gn

Issue 2010083002: views/mus: Run some more tests from views_unittests in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//mojo/public/mojo_application.gni") 7 import("//mojo/public/mojo_application.gni")
8 import("//mojo/public/mojo_application_manifest.gni") 8 import("//mojo/public/mojo_application_manifest.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//tools/grit/repack.gni") 10 import("//tools/grit/repack.gni")
11 11
12 gypi = exec_script("//build/gypi_to_gn.py",
13 [ rebase_path("../views.gyp") ],
14 "scope",
15 [ "../views.gyp" ])
12 component("mus") { 16 component("mus") {
13 output_name = "ui_views_mus_lib" 17 output_name = "ui_views_mus_lib"
14 18
15 sources = [ 19 sources = [
16 "aura_init.cc", 20 "aura_init.cc",
17 "aura_init.h", 21 "aura_init.h",
18 "display_list.cc", 22 "display_list.cc",
19 "display_list.h", 23 "display_list.h",
20 "input_method_mus.cc", 24 "input_method_mus.cc",
21 "input_method_mus.h", 25 "input_method_mus.h",
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 public_deps = [ 123 public_deps = [
120 ":mus", 124 ":mus",
121 ] 125 ]
122 } 126 }
123 127
124 source_set("test_support") { 128 source_set("test_support") {
125 testonly = true 129 testonly = true
126 130
127 sources = [ 131 sources = [
128 "../test/native_widget_factory_mus.cc", 132 "../test/native_widget_factory_mus.cc",
129 "../views_test_suite.cc",
130 "../views_test_suite.h",
131 "views_mus_test_suite.cc", 133 "views_mus_test_suite.cc",
132 "views_mus_test_suite.h", 134 "views_mus_test_suite.h",
133 ] 135 ]
134 136
135 deps = [ 137 deps = [
136 ":mus", 138 ":mus",
137 "//base", 139 "//base",
138 "//base/test:test_support", 140 "//base/test:test_support",
139 "//components/mus/common:mus_common", 141 "//components/mus/common:mus_common",
140 "//services/shell/background:lib", 142 "//services/shell/background:lib",
(...skipping 11 matching lines...) Expand all
152 data_deps = [ 154 data_deps = [
153 "//ui/resources:ui_test_pak_data", 155 "//ui/resources:ui_test_pak_data",
154 ] 156 ]
155 } 157 }
156 158
157 test("views_mus_unittests") { 159 test("views_mus_unittests") {
158 testonly = true 160 testonly = true
159 161
160 configs += [ "//build/config:precompiled_headers" ] 162 configs += [ "//build/config:precompiled_headers" ]
161 163
162 # TODO(sky): add more files.
163 sources = [ 164 sources = [
164 "../controls/native/native_view_host_aura_unittest.cc",
165 "../controls/native/native_view_host_test_base.cc",
166 "../controls/native/native_view_host_test_base.h",
167 "../controls/native/native_view_host_unittest.cc",
168 "../view_targeter_unittest.cc",
169 "../widget/native_widget_aura_unittest.cc",
170 "../widget/native_widget_unittest.cc",
171 "../widget/widget_unittest.cc",
172 "display_list_unittest.cc", 165 "display_list_unittest.cc",
173 "native_widget_mus_unittest.cc", 166 "native_widget_mus_unittest.cc",
174 "run_all_unittests_mus.cc", 167 "run_all_unittests_mus.cc",
175 "screen_mus_unittest.cc", 168 "screen_mus_unittest.cc",
176 "window_manager_connection_unittest.cc", 169 "window_manager_connection_unittest.cc",
177 ] 170 ]
178 171
172 sources += rebase_path(gypi.views_unittests_sources, ".", "//ui/views")
173 sources += rebase_path(gypi.views_unittests_aura_sources, ".", "//ui/views")
174
175 sources -= [
176 # Mus has its own runner.
177 "../run_all_unittests_main.cc",
178
179 # EventGenerator doesn't work well with IME in mus.
180 # crbug.com/615033 crbug.com/548407
181 "../controls/textfield/textfield_unittest.cc",
182
183 # Tooltips. crbug.com/599558
184 "../corewm/tooltip_controller_unittest.cc",
185
186 # Some of the tests need drag-drop support. crbug.com/614037
187 "../touchui/touch_selection_controller_impl_unittest.cc",
188 ]
189
179 deps = [ 190 deps = [
180 ":mus", 191 ":mus",
181 ":test_support", 192 ":test_support",
182 "//base", 193 "//base",
183 "//base:i18n", 194 "//base:i18n",
195 "//base/test:test_support",
184 "//cc", 196 "//cc",
185 "//components/mus/public/cpp", 197 "//components/mus/public/cpp",
186 "//components/mus/public/cpp/tests:unittest_support", 198 "//components/mus/public/cpp/tests:unittest_support",
187 "//components/mus/public/interfaces", 199 "//components/mus/public/interfaces",
188 "//services/shell/background:main", # Provides main(). 200 "//services/shell/background:main", # Provides main().
189 "//skia", 201 "//skia",
190 "//testing/gtest", 202 "//testing/gtest",
191 "//third_party/icu", 203 "//third_party/icu",
192 "//ui/accessibility", 204 "//ui/accessibility",
193 "//ui/aura", 205 "//ui/aura",
194 "//ui/aura:test_support", 206 "//ui/aura:test_support",
195 "//ui/base", 207 "//ui/base",
196 "//ui/base:test_support", 208 "//ui/base:test_support",
197 "//ui/base/ime", 209 "//ui/base/ime",
198 "//ui/compositor:test_support", 210 "//ui/compositor:test_support",
199 "//ui/events:dom_keycode_converter", 211 "//ui/events:dom_keycode_converter",
200 "//ui/events:events_base", 212 "//ui/events:events_base",
201 "//ui/events:test_support", 213 "//ui/events:test_support",
202 "//ui/events/platform", 214 "//ui/events/platform",
203 "//ui/gfx:test_support", 215 "//ui/gfx:test_support",
204 "//ui/gfx/geometry", 216 "//ui/gfx/geometry",
217 "//ui/native_theme",
205 "//ui/strings", 218 "//ui/strings",
219 "//ui/touch_selection",
206 "//ui/views", 220 "//ui/views",
207 "//ui/views:test_support_internal", 221 "//ui/views:test_support_internal",
208 "//ui/wm", 222 "//ui/wm",
209 "//url", 223 "//url",
210 ] 224 ]
211 225
212 data_deps = [ 226 data_deps = [
213 ":unittests_manifest", 227 ":unittests_manifest",
214 "//components/mus/test_wm", 228 "//components/mus/test_wm",
215 ] 229 ]
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 type = "exe" 312 type = "exe"
299 application_name = "views_mus_interactive_ui_tests" 313 application_name = "views_mus_interactive_ui_tests"
300 source = "interactive_ui_tests_manifest.json" 314 source = "interactive_ui_tests_manifest.json"
301 } 315 }
302 316
303 group("for_component") { 317 group("for_component") {
304 public_deps = [ 318 public_deps = [
305 ":mus", 319 ":mus",
306 ] 320 ]
307 } 321 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698