| 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("//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 "env_mojo.cc", | 11 "env_mojo.cc", |
| 11 "env_mojo.h", | 12 "env_mojo.h", |
| 12 "leveldb_database_impl.cc", | 13 "leveldb_database_impl.cc", |
| 13 "leveldb_database_impl.h", | 14 "leveldb_database_impl.h", |
| 14 "leveldb_file_thread.cc", | 15 "leveldb_file_thread.cc", |
| 15 "leveldb_file_thread.h", | 16 "leveldb_file_thread.h", |
| 16 "leveldb_service_impl.cc", | 17 "leveldb_service_impl.cc", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 data_deps = [ | 52 data_deps = [ |
| 52 ":manifest", | 53 ":manifest", |
| 53 ] | 54 ] |
| 54 } | 55 } |
| 55 | 56 |
| 56 mojo_application_manifest("manifest") { | 57 mojo_application_manifest("manifest") { |
| 57 application_name = "leveldb" | 58 application_name = "leveldb" |
| 58 source = "manifest.json" | 59 source = "manifest.json" |
| 59 } | 60 } |
| 60 | 61 |
| 61 mojo_native_application("apptests") { | 62 test("unittests") { |
| 62 output_name = "leveldb_apptests" | 63 output_name = "leveldb_service_unittests" |
| 63 | |
| 64 testonly = true | |
| 65 | 64 |
| 66 sources = [ | 65 sources = [ |
| 67 "leveldb_apptest.cc", | 66 "leveldb_service_unittest.cc", |
| 68 ] | 67 ] |
| 69 | 68 |
| 70 deps = [ | 69 deps = [ |
| 71 "//base", | 70 "//base", |
| 72 "//components/filesystem/public/interfaces", | 71 "//components/filesystem/public/interfaces", |
| 73 "//components/leveldb/public/interfaces", | 72 "//components/leveldb/public/interfaces", |
| 74 "//mojo/common", | 73 "//mojo/common", |
| 75 "//mojo/platform_handle:for_shared_library", | 74 "//mojo/platform_handle", |
| 76 "//mojo/public/cpp/bindings", | 75 "//mojo/public/cpp/bindings", |
| 77 "//mojo/shell/public/cpp:test_support", | 76 "//mojo/shell/public/cpp:shell_test_support", |
| 77 "//mojo/shell/public/cpp:sources", |
| 78 "//mojo/shell/public/cpp/test:run_all_shelltests", |
| 78 ] | 79 ] |
| 79 | 80 |
| 80 data_deps = [ | 81 data_deps = [ |
| 81 ":apptest_manifest", | 82 ":test_manifest", |
| 82 ":leveldb", | 83 ":leveldb", |
| 83 "//components/filesystem:filesystem", | 84 "//components/filesystem:filesystem", |
| 84 ] | 85 ] |
| 85 } | 86 } |
| 86 | 87 |
| 87 mojo_application_manifest("apptest_manifest") { | 88 mojo_application_manifest("test_manifest") { |
| 88 application_name = "leveldb_apptests" | 89 type = "exe" |
| 89 source = "apptest_manifest.json" | 90 application_name = "leveldb_service_unittests" |
| 91 source = "test_manifest.json" |
| 90 } | 92 } |
| OLD | NEW |