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