| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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("resource_provider_unittests") { |
| 113 sources = [ | 114 sources = [ |
| 114 "file_utils_unittest.cc", | 115 "file_utils_unittest.cc", |
| 116 "resource_provider_unittest.cc", |
| 115 ] | 117 ] |
| 116 | 118 |
| 117 deps = [ | 119 deps = [ |
| 118 ":lib", | 120 ":lib", |
| 121 ":test_interfaces", |
| 119 "//base", | 122 "//base", |
| 120 "//base/test:test_config", | |
| 121 "//components/resource_provider/public/interfaces", | 123 "//components/resource_provider/public/interfaces", |
| 122 "//mojo/edk/test:run_all_unittests", | 124 "//mojo/shell/background:main", |
| 123 "//mojo/platform_handle:for_shared_library", | 125 "//mojo/shell/public/cpp:shell_test_support", |
| 126 "//mojo/shell/public/cpp/test:run_all_shelltests", |
| 124 "//testing/gtest", | 127 "//testing/gtest", |
| 125 "//url", | 128 "//url", |
| 126 ] | 129 ] |
| 130 |
| 131 data_deps = [ |
| 132 ":test_app", |
| 133 ":unittests_manifest", |
| 134 ] |
| 127 } | 135 } |
| 128 | 136 |
| 129 mojo_native_application("apptests") { | 137 mojo_native_application("test_app") { |
| 130 output_name = "resource_provider_apptests" | 138 output_name = "resource_provider_test_app" |
| 131 testonly = true | 139 testonly = true |
| 132 | 140 |
| 133 sources = [ | 141 sources = [ |
| 134 "resource_provider_apptest.cc", | 142 "resource_provider_test_app.cc", |
| 135 ] | 143 ] |
| 136 | 144 |
| 137 resources = [ | 145 resources = [ |
| 138 "//components/test/data/resource_provider/sample", | 146 "//components/test/data/resource_provider/sample", |
| 139 "//components/test/data/resource_provider/dir", | 147 "//components/test/data/resource_provider/dir", |
| 140 ] | 148 ] |
| 141 | 149 |
| 142 deps = [ | 150 deps = [ |
| 151 ":test_interfaces", |
| 143 "//base", | 152 "//base", |
| 144 "//base/test:test_config", | |
| 145 "//components/resource_provider/public/cpp", | 153 "//components/resource_provider/public/cpp", |
| 146 "//components/resource_provider/public/interfaces", | 154 "//components/resource_provider/public/interfaces", |
| 147 "//mojo/common", | 155 "//mojo/shell/public/cpp", |
| 148 "//mojo/shell/public/cpp:test_support", | 156 "//mojo/shell/public/interfaces", |
| 149 ] | 157 ] |
| 150 | 158 |
| 151 data_deps = [ | 159 data_deps = [ |
| 152 ":apptest_manifest", | |
| 153 ":resource_provider", | 160 ":resource_provider", |
| 161 ":test_manifest", |
| 154 ] | 162 ] |
| 155 } | 163 } |
| 156 | 164 |
| 157 mojo_application_manifest("apptest_manifest") { | 165 mojo_application_manifest("test_manifest") { |
| 158 application_name = "resource_provider_apptests" | 166 application_name = "resource_provider_test_app" |
| 159 source = "apptest_manifest.json" | 167 source = "test_manifest.json" |
| 160 } | 168 } |
| 169 |
| 170 mojo_application_manifest("unittests_manifest") { |
| 171 type = "exe" |
| 172 application_name = "resource_provider_unittests" |
| 173 source = "unittests_manifest.json" |
| 174 } |
| 175 |
| 176 mojom("test_interfaces") { |
| 177 sources = [ |
| 178 "test.mojom", |
| 179 ] |
| 180 } |
| OLD | NEW |