Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: services/preferences/BUILD.gn

Issue 2759413002: Move PrefStoreManagerImpl into //services/preferences. (Closed)
Patch Set: Update newly-added test. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/catalog/public/tools/catalog.gni") 5 import("//services/catalog/public/tools/catalog.gni")
6 import("//services/service_manager/public/service_manifest.gni") 6 import("//services/service_manager/public/service_manifest.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 service_manifest("manifest") { 9 service_manifest("manifest") {
10 name = "preferences2" 10 name = "preferences2"
11 source = "manifest.json" 11 source = "manifest.json"
12 } 12 }
13 13
14 source_set("preferences") { 14 source_set("preferences") {
15 public_deps = [ 15 visibility = [
16 "//services/preferences/public/interfaces", 16 ":*",
17 "//services/preferences/public/cpp:service_main",
17 ] 18 ]
18 deps = [ 19 deps = [
19 "//components/prefs", 20 "//components/prefs",
21 "//services/preferences/public/interfaces",
22 "//services/service_manager/public/cpp",
20 ] 23 ]
21 sources = [ 24 sources = [
22 "persistent_pref_store_factory.cc", 25 "persistent_pref_store_factory.cc",
23 "persistent_pref_store_factory.h", 26 "persistent_pref_store_factory.h",
24 "persistent_pref_store_impl.cc", 27 "persistent_pref_store_impl.cc",
25 "persistent_pref_store_impl.h", 28 "persistent_pref_store_impl.h",
29 "pref_store_manager_impl.cc",
30 "pref_store_manager_impl.h",
26 ] 31 ]
27 } 32 }
28 33
29 source_set("tests") { 34 source_set("tests") {
30 testonly = true 35 testonly = true
31 deps = [ 36 deps = [
32 ":preferences", 37 ":preferences",
33 "//base", 38 "//base",
34 "//base/test:test_support", 39 "//base/test:test_support",
35 "//components/prefs:test_support", 40 "//components/prefs:test_support",
36 "//mojo/public/cpp/bindings:bindings", 41 "//mojo/public/cpp/bindings:bindings",
37 "//services/preferences/public/cpp", 42 "//services/preferences/public/cpp",
43 "//services/preferences/public/cpp:service_main",
38 "//services/preferences/public/cpp/tests", 44 "//services/preferences/public/cpp/tests",
39 "//services/preferences/public/interfaces", 45 "//services/preferences/public/interfaces",
40 "//services/service_manager/public/cpp", 46 "//services/service_manager/public/cpp",
41 "//testing/gmock", 47 "//testing/gmock",
42 "//testing/gtest", 48 "//testing/gtest",
43 ] 49 ]
44 sources = [ 50 sources = [
45 "persistent_pref_store_impl_unittest.cc", 51 "persistent_pref_store_impl_unittest.cc",
46 ] 52 ]
47 if (!is_ios) { 53 if (!is_ios) {
48 sources += [ "pref_service_factory_unittest.cc" ] 54 sources += [ "pref_service_factory_unittest.cc" ]
49 deps += [ "//services/service_manager/public/cpp:service_test_support" ] 55 deps += [ "//services/service_manager/public/cpp:service_test_support" ]
50 } 56 }
51 } 57 }
52 58
53 service_manifest("unittest_manifest") { 59 service_manifest("unittest_manifest") {
54 name = "prefs_unittests" 60 name = "prefs_unittests"
55 source = "unittest_manifest.json" 61 source = "unittest_manifest.json"
56 packaged_services = [ ":manifest" ] 62 packaged_services = [ ":manifest" ]
57 } 63 }
58 64
59 catalog("tests_catalog") { 65 catalog("tests_catalog") {
60 testonly = true 66 testonly = true
61 embedded_services = [ ":unittest_manifest" ] 67 embedded_services = [ ":unittest_manifest" ]
62 } 68 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | services/preferences/pref_service_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698