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