OLD | NEW |
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("//mojo/mojo_application_package.gni") |
5 import("//testing/test.gni") | 6 import("//testing/test.gni") |
6 import("//third_party/mojo/src/mojo/public/mojo.gni") | 7 import("//third_party/mojo/src/mojo/public/mojo.gni") |
7 import("//third_party/mojo/src/mojo/public/mojo_application.gni") | 8 import("//third_party/mojo/src/mojo/public/mojo_application.gni") |
8 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
9 | 10 |
10 # Repack this here. | 11 # Repack this here. |
11 repack("unified_blink_resources") { | 12 repack("unified_blink_resources") { |
12 sources = [ | 13 sources = [ |
13 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, | 14 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, |
14 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 15 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 195 |
195 deps = [ | 196 deps = [ |
196 ":html_viewer_java_classes", | 197 ":html_viewer_java_classes", |
197 | 198 |
198 # TODO(sky): this is WAY more than we need. We really only need | 199 # TODO(sky): this is WAY more than we need. We really only need |
199 # DeviceDisplayInfo. Refactor to make this clearer. | 200 # DeviceDisplayInfo. Refactor to make this clearer. |
200 "//ui/android:ui_java", | 201 "//ui/android:ui_java", |
201 ] | 202 ] |
202 } | 203 } |
203 } else { | 204 } else { |
204 mojo_native_application("html_viewer") { | 205 mojo_application_package("html_viewer") { |
205 sources = [ | 206 sources = [ |
206 "html_viewer.cc", | 207 "html_viewer.cc", |
207 ] | 208 ] |
208 deps = [ | 209 deps = [ |
209 ":lib", | 210 ":lib", |
| 211 "//ui/resources:ui_test_pak", |
210 ] | 212 ] |
| 213 resources = [ "$root_out_dir/ui_test.pak" ] |
211 data_deps = [ "//mojo/services/network:network" ] | 214 data_deps = [ "//mojo/services/network:network" ] |
212 } | 215 } |
213 } | 216 } |
214 | 217 |
215 test("tests") { | 218 test("tests") { |
216 output_name = "html_viewer_unittests" | 219 output_name = "html_viewer_unittests" |
217 sources = [ | 220 sources = [ |
218 "ax_provider_impl_unittest.cc", | 221 "ax_provider_impl_unittest.cc", |
219 "discardable_memory_allocator_unittest.cc", | 222 "discardable_memory_allocator_unittest.cc", |
220 ] | 223 ] |
(...skipping 12 matching lines...) Expand all Loading... |
233 ] | 236 ] |
234 | 237 |
235 deps = [ | 238 deps = [ |
236 ":lib", | 239 ":lib", |
237 ":html_viewer", | 240 ":html_viewer", |
238 "//mojo/application:test_support", | 241 "//mojo/application:test_support", |
239 "//net:test_support", | 242 "//net:test_support", |
240 "//testing/gtest", | 243 "//testing/gtest", |
241 ] | 244 ] |
242 } | 245 } |
OLD | NEW |