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("//services/service_manager/public/service_manifest.gni") | 5 import("//services/service_manager/public/service_manifest.gni") |
| 6 import("//testing/test.gni") |
6 | 7 |
7 group("tests") { | 8 group("tests") { |
8 testonly = true | 9 testonly = true |
9 deps = [ | 10 deps = [ |
10 "//services/preferences/public/cpp/tests", | 11 ":preferences_unittests", |
11 ] | 12 ] |
12 } | 13 } |
13 | 14 |
14 service_manifest("manifest") { | 15 service_manifest("manifest") { |
15 name = "preferences2" | 16 name = "preferences2" |
16 source = "manifest.json" | 17 source = "manifest.json" |
17 } | 18 } |
| 19 |
| 20 source_set("preferences") { |
| 21 public_deps = [ |
| 22 "//services/preferences/public/interfaces", |
| 23 ] |
| 24 deps = [ |
| 25 "//components/prefs", |
| 26 ] |
| 27 sources = [ |
| 28 "persistent_pref_store_impl.cc", |
| 29 "persistent_pref_store_impl.h", |
| 30 ] |
| 31 } |
| 32 |
| 33 test("preferences_unittests") { |
| 34 deps = [ |
| 35 ":preferences", |
| 36 "//base", |
| 37 "//base/test:test_support", |
| 38 "//components/prefs:test_support", |
| 39 "//mojo/edk/test:run_all_unittests", |
| 40 "//mojo/public/cpp/bindings:bindings", |
| 41 "//services/preferences/public/cpp", |
| 42 "//services/preferences/public/cpp/tests", |
| 43 "//services/preferences/public/interfaces", |
| 44 "//testing/gmock", |
| 45 "//testing/gtest", |
| 46 ] |
| 47 sources = [ |
| 48 "persistent_pref_store_impl_unittest.cc", |
| 49 ] |
| 50 } |
OLD | NEW |