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/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
| 7 import("//testing/test.gni") |
7 | 8 |
8 source_set("lib") { | 9 source_set("lib") { |
9 sources = [ | 10 sources = [ |
10 "directory_impl.cc", | 11 "directory_impl.cc", |
11 "directory_impl.h", | 12 "directory_impl.h", |
12 "file_impl.cc", | 13 "file_impl.cc", |
13 "file_impl.h", | 14 "file_impl.h", |
14 "file_system_impl.cc", | 15 "file_system_impl.cc", |
15 "file_system_impl.h", | 16 "file_system_impl.h", |
16 "lock_table.cc", | 17 "lock_table.cc", |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 data_deps = [ | 54 data_deps = [ |
54 ":manifest", | 55 ":manifest", |
55 ] | 56 ] |
56 } | 57 } |
57 | 58 |
58 mojo_application_manifest("manifest") { | 59 mojo_application_manifest("manifest") { |
59 application_name = "filesystem" | 60 application_name = "filesystem" |
60 source = "manifest.json" | 61 source = "manifest.json" |
61 } | 62 } |
62 | 63 |
63 mojo_native_application("apptests") { | 64 test("unittests") { |
64 output_name = "filesystem_apptests" | 65 output_name = "filesystem_service_unittests" |
65 | |
66 testonly = true | |
67 | 66 |
68 sources = [ | 67 sources = [ |
69 "directory_impl_unittest.cc", | 68 "directory_impl_unittest.cc", |
70 "file_impl_unittest.cc", | 69 "file_impl_unittest.cc", |
71 "files_test_base.cc", | 70 "files_test_base.cc", |
72 "files_test_base.h", | 71 "files_test_base.h", |
73 ] | 72 ] |
74 | 73 |
75 deps = [ | 74 deps = [ |
76 "//base", | 75 "//base", |
77 "//components/filesystem/public/interfaces", | 76 "//components/filesystem/public/interfaces", |
78 "//mojo/common", | 77 "//mojo/common", |
79 "//mojo/platform_handle:for_shared_library", | 78 "//mojo/platform_handle", |
80 "//mojo/public/cpp/bindings", | 79 "//mojo/public/cpp/bindings", |
81 "//mojo/shell/public/cpp:test_support", | 80 "//mojo/shell/public/cpp:shell_test_support", |
| 81 "//mojo/shell/public/cpp:sources", |
| 82 "//mojo/shell/public/cpp/test:run_all_shelltests", |
82 ] | 83 ] |
83 | 84 |
84 data_deps = [ | 85 data_deps = [ |
85 ":apptest_manifest", | 86 ":test_manifest", |
86 ":filesystem", | 87 ":filesystem", |
87 ] | 88 ] |
88 } | 89 } |
89 | 90 |
90 mojo_application_manifest("apptest_manifest") { | 91 mojo_application_manifest("test_manifest") { |
91 application_name = "filesystem_apptests" | 92 type = "exe" |
92 source = "apptest_manifest.json" | 93 application_name = "filesystem_service_unittests" |
| 94 source = "test_manifest.json" |
93 } | 95 } |
OLD | NEW |