Index: services/preferences/BUILD.gn |
diff --git a/services/preferences/BUILD.gn b/services/preferences/BUILD.gn |
index 58a2d4ae1ced20fdc57c76f449e189d30b3a8f1e..07105a5677afda24e27519a3ab81de25402d7a23 100644 |
--- a/services/preferences/BUILD.gn |
+++ b/services/preferences/BUILD.gn |
@@ -3,11 +3,12 @@ |
# found in the LICENSE file. |
import("//services/service_manager/public/service_manifest.gni") |
+import("//testing/test.gni") |
group("tests") { |
testonly = true |
deps = [ |
- "//services/preferences/public/cpp/tests", |
+ ":preferences_unittests", |
] |
} |
@@ -15,3 +16,35 @@ service_manifest("manifest") { |
name = "preferences2" |
source = "manifest.json" |
} |
+ |
+source_set("preferences") { |
+ public_deps = [ |
+ "//services/preferences/public/interfaces", |
+ ] |
+ deps = [ |
+ "//components/prefs", |
+ ] |
+ sources = [ |
+ "persistent_pref_store_impl.cc", |
+ "persistent_pref_store_impl.h", |
+ ] |
+} |
+ |
+test("preferences_unittests") { |
+ deps = [ |
+ ":preferences", |
+ "//base", |
+ "//base/test:test_support", |
+ "//components/prefs:test_support", |
+ "//mojo/edk/test:run_all_unittests", |
+ "//mojo/public/cpp/bindings:bindings", |
+ "//services/preferences/public/cpp", |
+ "//services/preferences/public/cpp/tests", |
+ "//services/preferences/public/interfaces", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ ] |
+ sources = [ |
+ "persistent_pref_store_impl_unittest.cc", |
+ ] |
+} |