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

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
« no previous file with comments | « ui/views/event_monitor_unittest.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "clipboard_mus.cc", 22 "clipboard_mus.cc",
19 "clipboard_mus.h", 23 "clipboard_mus.h",
20 "display_list.cc", 24 "display_list.cc",
21 "display_list.h", 25 "display_list.h",
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 public_deps = [ 126 public_deps = [
123 ":mus", 127 ":mus",
124 ] 128 ]
125 } 129 }
126 130
127 source_set("test_support") { 131 source_set("test_support") {
128 testonly = true 132 testonly = true
129 133
130 sources = [ 134 sources = [
131 "../test/native_widget_factory_mus.cc", 135 "../test/native_widget_factory_mus.cc",
132 "../views_test_suite.cc",
133 "../views_test_suite.h",
134 "views_mus_test_suite.cc", 136 "views_mus_test_suite.cc",
135 "views_mus_test_suite.h", 137 "views_mus_test_suite.h",
136 ] 138 ]
137 139
138 deps = [ 140 deps = [
139 ":mus", 141 ":mus",
140 "//base", 142 "//base",
141 "//base/test:test_support", 143 "//base/test:test_support",
142 "//components/mus/common:mus_common", 144 "//components/mus/common:mus_common",
143 "//services/shell/background:lib", 145 "//services/shell/background:lib",
(...skipping 11 matching lines...) Expand all
155 data_deps = [ 157 data_deps = [
156 "//ui/resources:ui_test_pak_data", 158 "//ui/resources:ui_test_pak_data",
157 ] 159 ]
158 } 160 }
159 161
160 test("views_mus_unittests") { 162 test("views_mus_unittests") {
161 testonly = true 163 testonly = true
162 164
163 configs += [ "//build/config:precompiled_headers" ] 165 configs += [ "//build/config:precompiled_headers" ]
164 166
165 # TODO(sky): add more files.
166 sources = [ 167 sources = [
167 "../controls/native/native_view_host_aura_unittest.cc",
168 "../controls/native/native_view_host_test_base.cc",
169 "../controls/native/native_view_host_test_base.h",
170 "../controls/native/native_view_host_unittest.cc",
171 "../focus/focus_manager_unittest.cc",
172 "../view_targeter_unittest.cc",
173 "../widget/native_widget_aura_unittest.cc",
174 "../widget/native_widget_unittest.cc",
175 "../widget/widget_unittest.cc",
176 "display_list_unittest.cc", 168 "display_list_unittest.cc",
177 "native_widget_mus_unittest.cc", 169 "native_widget_mus_unittest.cc",
178 "run_all_unittests_mus.cc", 170 "run_all_unittests_mus.cc",
179 "screen_mus_unittest.cc", 171 "screen_mus_unittest.cc",
180 "window_manager_connection_unittest.cc", 172 "window_manager_connection_unittest.cc",
181 ] 173 ]
182 174
175 sources += rebase_path(gypi.views_unittests_sources, ".", "//ui/views")
176 sources += rebase_path(gypi.views_unittests_aura_sources, ".", "//ui/views")
177
178 sources -= [
179 # Mus has its own runner.
180 "../run_all_unittests_main.cc",
181
182 # EventGenerator doesn't work well with IME in mus.
183 # crbug.com/615033 crbug.com/548407
184 "../controls/textfield/textfield_unittest.cc",
185
186 # Tooltips. crbug.com/599558
187 "../corewm/tooltip_controller_unittest.cc",
188
189 # Some of the tests need drag-drop support. crbug.com/614037
190 "../touchui/touch_selection_controller_impl_unittest.cc",
191 ]
192
183 deps = [ 193 deps = [
184 ":mus", 194 ":mus",
185 ":test_support", 195 ":test_support",
186 "//base", 196 "//base",
187 "//base:i18n", 197 "//base:i18n",
198 "//base/test:test_support",
188 "//cc", 199 "//cc",
189 "//components/mus/public/cpp", 200 "//components/mus/public/cpp",
190 "//components/mus/public/cpp/tests:unittest_support", 201 "//components/mus/public/cpp/tests:unittest_support",
191 "//components/mus/public/interfaces", 202 "//components/mus/public/interfaces",
192 "//services/shell/background:main", # Provides main(). 203 "//services/shell/background:main", # Provides main().
193 "//skia", 204 "//skia",
194 "//testing/gtest", 205 "//testing/gtest",
195 "//third_party/icu", 206 "//third_party/icu",
196 "//ui/accessibility", 207 "//ui/accessibility",
197 "//ui/aura", 208 "//ui/aura",
198 "//ui/aura:test_support", 209 "//ui/aura:test_support",
199 "//ui/base", 210 "//ui/base",
200 "//ui/base:test_support", 211 "//ui/base:test_support",
201 "//ui/base/ime", 212 "//ui/base/ime",
202 "//ui/compositor:test_support", 213 "//ui/compositor:test_support",
203 "//ui/events:dom_keycode_converter", 214 "//ui/events:dom_keycode_converter",
204 "//ui/events:events_base", 215 "//ui/events:events_base",
205 "//ui/events:test_support", 216 "//ui/events:test_support",
206 "//ui/events/platform", 217 "//ui/events/platform",
207 "//ui/gfx:test_support", 218 "//ui/gfx:test_support",
208 "//ui/gfx/geometry", 219 "//ui/gfx/geometry",
220 "//ui/native_theme",
209 "//ui/strings", 221 "//ui/strings",
222 "//ui/touch_selection",
210 "//ui/views", 223 "//ui/views",
211 "//ui/views:test_support_internal", 224 "//ui/views:test_support_internal",
212 "//ui/wm", 225 "//ui/wm",
213 "//url", 226 "//url",
214 ] 227 ]
215 228
216 data_deps = [ 229 data_deps = [
217 ":unittests_manifest", 230 ":unittests_manifest",
218 "//components/mus/test_wm", 231 "//components/mus/test_wm",
219 ] 232 ]
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 type = "exe" 318 type = "exe"
306 application_name = "views_mus_interactive_ui_tests" 319 application_name = "views_mus_interactive_ui_tests"
307 source = "interactive_ui_tests_manifest.json" 320 source = "interactive_ui_tests_manifest.json"
308 } 321 }
309 322
310 group("for_component") { 323 group("for_component") {
311 public_deps = [ 324 public_deps = [
312 ":mus", 325 ":mus",
313 ] 326 ]
314 } 327 }
OLDNEW
« no previous file with comments | « ui/views/event_monitor_unittest.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698