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

Side by Side Diff: mash/wm/BUILD.gn

Issue 1822133002: Converts mash_wm_apptests to unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 9 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 | « mash/unittests_manifest.json ('k') | mash/wm/accelerator_registrar_apptest.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 2015 The Chromium Authors. All rights reserved. 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 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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 import("//mojo/public/mojo_application_manifest.gni") 7 import("//mojo/public/mojo_application_manifest.gni")
8 import("//mojo/public/tools/bindings/mojom.gni") 8 import("//mojo/public/tools/bindings/mojom.gni")
9 import("//tools/grit/repack.gni") 9 import("//tools/grit/repack.gni")
10 10
11 group("tests") {
12 testonly = true
13 deps = [
14 ":apptests",
15 ]
16 }
17
18 source_set("lib") { 11 source_set("lib") {
19 sources = [ 12 sources = [
20 "accelerator_registrar_impl.cc", 13 "accelerator_registrar_impl.cc",
21 "accelerator_registrar_impl.h", 14 "accelerator_registrar_impl.h",
22 "background_layout.cc", 15 "background_layout.cc",
23 "background_layout.h", 16 "background_layout.h",
24 "fill_layout.cc", 17 "fill_layout.cc",
25 "fill_layout.h", 18 "fill_layout.h",
26 "frame/caption_buttons/caption_button_types.h", 19 "frame/caption_buttons/caption_button_types.h",
27 "frame/caption_buttons/frame_caption_button.cc", 20 "frame/caption_buttons/frame_caption_button.cc",
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 output = "$root_out_dir/mash_wm_resources.pak" 126 output = "$root_out_dir/mash_wm_resources.pak"
134 deps = [ 127 deps = [
135 "//mash/wm/resources", 128 "//mash/wm/resources",
136 "//ui/resources", 129 "//ui/resources",
137 "//ui/strings", 130 "//ui/strings",
138 "//ui/views/mus:resources", 131 "//ui/views/mus:resources",
139 "//ui/views/resources", 132 "//ui/views/resources",
140 ] 133 ]
141 } 134 }
142 135
143 mojo_native_application("apptests") {
144 output_name = "mash_wm_apptests"
145 testonly = true
146
147 sources = [
148 "accelerator_registrar_apptest.cc",
149 "window_manager_apptest.cc",
150 ]
151
152 deps = [
153 "//base",
154 "//base/test:test_config",
155 "//components/mus/public/cpp",
156 "//components/mus/public/interfaces",
157 "//mojo/common:common_base",
158 "//mojo/converters/geometry",
159 "//mojo/converters/input_events",
160 "//mojo/shell/public/cpp:sources",
161 "//mojo/shell/public/cpp:test_support",
162 "//ui/mojo/geometry:interfaces",
163 "//ui/mojo/geometry:util",
164 ]
165
166 data_deps = [
167 ":apptest_manifest",
168 ":wm",
169 ]
170
171 if (use_x11) {
172 deps += [ "//tools/xdisplaycheck" ]
173 }
174 }
175
176 mojo_application_manifest("apptest_manifest") {
177 application_name = "mash_wm_apptests"
178 source = "apptest_manifest.json"
179 }
180
181 source_set("unittests") { 136 source_set("unittests") {
182 testonly = true 137 testonly = true
183 138
184 sources = [ 139 sources = [
140 "accelerator_registrar_unittest.cc",
185 "frame/move_loop_unittest.cc", 141 "frame/move_loop_unittest.cc",
186 "layout_manager_unittest.cc", 142 "layout_manager_unittest.cc",
143 "window_manager_unittest.cc",
187 ] 144 ]
188 145
189 deps = [ 146 deps = [
190 ":lib", 147 ":lib",
191 "//base", 148 "//base",
192 "//base/test:test_config", 149 "//base/test:test_config",
193 "//components/mus/public/cpp", 150 "//components/mus/public/cpp",
194 "//components/mus/public/cpp/tests:unittest_support", 151 "//components/mus/public/cpp/tests:unittest_support",
152 "//components/mus/public/interfaces",
195 "//mojo/converters/geometry", 153 "//mojo/converters/geometry",
196 "//mojo/converters/input_events", 154 "//mojo/converters/input_events",
197 "//mojo/edk/system", 155 "//mojo/edk/system",
198 "//mojo/gles2", 156 "//mojo/gles2",
199 "//mojo/platform_handle", 157 "//mojo/platform_handle",
200 "//mojo/public/cpp/system", 158 "//mojo/public/cpp/system",
159 "//mojo/shell/public/cpp:shell_test_support",
201 "//testing/gtest", 160 "//testing/gtest",
202 "//ui/base", 161 "//ui/base",
203 "//ui/events", 162 "//ui/events",
204 "//ui/gfx:test_support", 163 "//ui/gfx:test_support",
205 "//ui/gfx/geometry", 164 "//ui/gfx/geometry",
206 "//ui/mojo/geometry:interfaces", 165 "//ui/mojo/geometry:interfaces",
207 "//ui/mojo/geometry:util", 166 "//ui/mojo/geometry:util",
208 ] 167 ]
209 } 168 }
OLDNEW
« no previous file with comments | « mash/unittests_manifest.json ('k') | mash/wm/accelerator_registrar_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698