Index: services/preferences/BUILD.gn |
diff --git a/services/preferences/BUILD.gn b/services/preferences/BUILD.gn |
index 58a2d4ae1ced20fdc57c76f449e189d30b3a8f1e..ecadc57e5925785b944a927c44115314b87d7180 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 = [ |
+ "user_prefs.cc", |
+ "user_prefs.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 = [ |
+ "user_prefs_unittest.cc", |
+ ] |
+} |