OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//services/shell/public/cpp/service.gni") |
7 import("//mojo/public/mojo_application_manifest.gni") | 7 import("//services/shell/public/service_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 source_set("lib") { | 11 source_set("lib") { |
12 testonly = true | 12 testonly = true |
13 sources = [ | 13 sources = [ |
14 "webtest.cc", | 14 "webtest.cc", |
15 "webtest.h", | 15 "webtest.h", |
16 ] | 16 ] |
17 | 17 |
(...skipping 11 matching lines...) Expand all Loading... |
29 "//ui/views", | 29 "//ui/views", |
30 "//ui/views/mus:for_mojo_application", | 30 "//ui/views/mus:for_mojo_application", |
31 "//url", | 31 "//url", |
32 ] | 32 ] |
33 | 33 |
34 data_deps = [ | 34 data_deps = [ |
35 "//services/navigation", | 35 "//services/navigation", |
36 ] | 36 ] |
37 } | 37 } |
38 | 38 |
39 mojo_native_application("webtest") { | 39 service("webtest") { |
40 testonly = true | 40 testonly = true |
41 sources = [ | 41 sources = [ |
42 "main.cc", | 42 "main.cc", |
43 ] | 43 ] |
44 | 44 |
45 deps = [ | 45 deps = [ |
46 ":lib", | 46 ":lib", |
47 "//services/shell/public/cpp", | 47 "//services/shell/public/cpp", |
48 "//ui/views/mus:for_mojo_application", | 48 "//ui/views/mus:for_mojo_application", |
49 ] | 49 ] |
50 | 50 |
51 resources = [ "$root_out_dir/views_mus_resources.pak" ] | 51 resources = [ "$root_out_dir/views_mus_resources.pak" ] |
52 | 52 |
53 data_deps = [ | 53 data_deps = [ |
54 ":manifest", | 54 ":manifest", |
55 "//services/ui", | 55 "//services/ui", |
56 ] | 56 ] |
57 } | 57 } |
58 | 58 |
59 mojo_application_manifest("manifest") { | 59 service_manifest("manifest") { |
60 application_name = "webtest" | 60 name = "webtest" |
61 source = "manifest.json" | 61 source = "manifest.json" |
62 } | 62 } |
OLD | NEW |