Chromium Code Reviews| OLD | NEW |
|---|---|
| 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("//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("//mojo/public/tools/bindings/mojom.gni") | |
| 7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 8 | 9 |
| 9 if (is_android) { | 10 if (is_android) { |
| 10 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
| 11 | 12 |
| 12 java_library_path = "$target_out_dir/java_library.dex.jar" | 13 java_library_path = "$target_out_dir/java_library.dex.jar" |
| 13 | 14 |
| 14 mojo_android_application("resource_provider") { | 15 mojo_android_application("resource_provider") { |
| 15 input_so = | 16 input_so = |
| 16 "$root_shlib_dir/${shlib_prefix}resource_provider_lib$shlib_extension" | 17 "$root_shlib_dir/${shlib_prefix}resource_provider_lib$shlib_extension" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 "//base", | 103 "//base", |
| 103 "//components/resource_provider/public/interfaces", | 104 "//components/resource_provider/public/interfaces", |
| 104 "//mojo/common:common_base", | 105 "//mojo/common:common_base", |
| 105 "//mojo/platform_handle", | 106 "//mojo/platform_handle", |
| 106 "//mojo/services/tracing/public/cpp", | 107 "//mojo/services/tracing/public/cpp", |
| 107 "//mojo/shell/public/cpp", | 108 "//mojo/shell/public/cpp", |
| 108 "//url", | 109 "//url", |
| 109 ] | 110 ] |
| 110 } | 111 } |
| 111 | 112 |
| 112 test("resource_provider_unittests") { | 113 test("unittests") { |
| 114 output_name = "resource_provider_unittests" | |
|
Dirk Pranke
2016/03/21 22:57:31
GN style is to have the target_name match the bina
sky
2016/03/21 23:05:28
Is that decision up for discussion? It seems to me
sky
2016/03/21 23:15:03
I talked with Brett and he convinced me to go_with
| |
| 115 | |
| 113 sources = [ | 116 sources = [ |
| 114 "file_utils_unittest.cc", | 117 "file_utils_unittest.cc", |
| 118 "resource_provider_unittest.cc", | |
| 115 ] | 119 ] |
| 116 | 120 |
| 117 deps = [ | 121 deps = [ |
| 118 ":lib", | 122 ":lib", |
| 123 ":test_interfaces", | |
| 119 "//base", | 124 "//base", |
| 120 "//base/test:test_config", | |
| 121 "//components/resource_provider/public/interfaces", | 125 "//components/resource_provider/public/interfaces", |
| 122 "//mojo/edk/test:run_all_unittests", | |
| 123 "//mojo/platform_handle:for_shared_library", | 126 "//mojo/platform_handle:for_shared_library", |
| 127 "//mojo/shell/background:main", | |
| 128 "//mojo/shell/public/cpp:shell_test_support", | |
| 129 "//mojo/shell/public/cpp/test:run_all_shelltests", | |
| 124 "//testing/gtest", | 130 "//testing/gtest", |
| 125 "//url", | 131 "//url", |
| 126 ] | 132 ] |
| 133 | |
| 134 data_deps = [ | |
| 135 ":test_app", | |
| 136 ":unittests_manifest", | |
| 137 ] | |
| 127 } | 138 } |
| 128 | 139 |
| 129 mojo_native_application("apptests") { | 140 mojo_native_application("test_app") { |
| 130 output_name = "resource_provider_apptests" | 141 output_name = "resource_provider_test_app" |
| 131 testonly = true | 142 testonly = true |
| 132 | 143 |
| 133 sources = [ | 144 sources = [ |
| 134 "resource_provider_apptest.cc", | 145 "resource_provider_test_app.cc", |
| 135 ] | 146 ] |
| 136 | 147 |
| 137 resources = [ | 148 resources = [ |
| 138 "//components/test/data/resource_provider/sample", | 149 "//components/test/data/resource_provider/sample", |
| 139 "//components/test/data/resource_provider/dir", | 150 "//components/test/data/resource_provider/dir", |
| 140 ] | 151 ] |
| 141 | 152 |
| 142 deps = [ | 153 deps = [ |
| 154 ":test_interfaces", | |
| 143 "//base", | 155 "//base", |
| 144 "//base/test:test_config", | |
| 145 "//components/resource_provider/public/cpp", | 156 "//components/resource_provider/public/cpp", |
| 146 "//components/resource_provider/public/interfaces", | 157 "//components/resource_provider/public/interfaces", |
| 147 "//mojo/common", | 158 "//mojo/shell/public/cpp", |
| 148 "//mojo/shell/public/cpp:test_support", | 159 "//mojo/shell/public/interfaces", |
| 149 ] | 160 ] |
| 150 | 161 |
| 151 data_deps = [ | 162 data_deps = [ |
| 152 ":apptest_manifest", | |
| 153 ":resource_provider", | 163 ":resource_provider", |
| 164 ":test_manifest", | |
| 154 ] | 165 ] |
| 155 } | 166 } |
| 156 | 167 |
| 157 mojo_application_manifest("apptest_manifest") { | 168 mojo_application_manifest("test_manifest") { |
| 158 application_name = "resource_provider_apptests" | 169 application_name = "resource_provider_test_app" |
| 159 source = "apptest_manifest.json" | 170 source = "test_manifest.json" |
| 160 } | 171 } |
| 172 | |
| 173 mojo_application_manifest("unittests_manifest") { | |
| 174 type = "exe" | |
| 175 application_name = "resource_provider_unittests" | |
| 176 source = "unittests_manifest.json" | |
| 177 } | |
| 178 | |
| 179 mojom("test_interfaces") { | |
| 180 sources = [ | |
| 181 "test.mojom", | |
| 182 ] | |
| 183 } | |
| OLD | NEW |