| 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("leveldb_service_unittests") { |
| 62 output_name = "leveldb_apptests" | |
| 63 | |
| 64 testonly = true | |
| 65 | |
| 66 sources = [ | 63 sources = [ |
| 67 "leveldb_apptest.cc", | 64 "leveldb_service_unittest.cc", |
| 68 ] | 65 ] |
| 69 | 66 |
| 70 deps = [ | 67 deps = [ |
| 71 "//base", | 68 "//base", |
| 72 "//components/filesystem/public/interfaces", | 69 "//components/filesystem/public/interfaces", |
| 73 "//components/leveldb/public/interfaces", | 70 "//components/leveldb/public/interfaces", |
| 74 "//mojo/common", | 71 "//mojo/common", |
| 75 "//mojo/platform_handle:for_shared_library", | 72 "//mojo/platform_handle", |
| 76 "//mojo/public/cpp/bindings", | 73 "//mojo/public/cpp/bindings", |
| 77 "//mojo/shell/public/cpp:test_support", | 74 "//mojo/shell/public/cpp:shell_test_support", |
| 75 "//mojo/shell/public/cpp:sources", |
| 76 "//mojo/shell/public/cpp/test:run_all_shelltests", |
| 78 ] | 77 ] |
| 79 | 78 |
| 80 data_deps = [ | 79 data_deps = [ |
| 81 ":apptest_manifest", | 80 ":test_manifest", |
| 82 ":leveldb", | 81 ":leveldb", |
| 83 "//components/filesystem:filesystem", | 82 "//components/filesystem:filesystem", |
| 84 ] | 83 ] |
| 85 } | 84 } |
| 86 | 85 |
| 87 mojo_application_manifest("apptest_manifest") { | 86 mojo_application_manifest("test_manifest") { |
| 88 application_name = "leveldb_apptests" | 87 type = "exe" |
| 89 source = "apptest_manifest.json" | 88 application_name = "leveldb_service_unittests" |
| 89 source = "test_manifest.json" |
| 90 } | 90 } |
| OLD | NEW |