| Index: components/ukm/BUILD.gn
|
| diff --git a/components/ukm/BUILD.gn b/components/ukm/BUILD.gn
|
| index 5b97d07fc98382a7b66f922ace57e9f0e4e22ded..3f1ff2fa12489c644f035512e784b3659e80bf2a 100644
|
| --- a/components/ukm/BUILD.gn
|
| +++ b/components/ukm/BUILD.gn
|
| @@ -17,6 +17,8 @@ static_library("ukm") {
|
| "ukm_pref_names.h",
|
| "ukm_service.cc",
|
| "ukm_service.h",
|
| + "ukm_source.cc",
|
| + "ukm_source.h",
|
| ]
|
|
|
| deps = [
|
| @@ -41,6 +43,23 @@ static_library("observers") {
|
| ]
|
| }
|
|
|
| +static_library("test_support") {
|
| + testonly = true
|
| + sources = [
|
| + "test_ukm_service.cc",
|
| + "test_ukm_service.h",
|
| + ]
|
| +
|
| + public_deps = [
|
| + ":ukm",
|
| + ]
|
| + deps = [
|
| + "//base",
|
| + "//components/metrics:test_support",
|
| + "//components/prefs:test_support",
|
| + ]
|
| +}
|
| +
|
| source_set("unit_tests") {
|
| testonly = true
|
| sources = [
|
| @@ -48,6 +67,7 @@ source_set("unit_tests") {
|
| ]
|
|
|
| deps = [
|
| + ":test_support",
|
| ":ukm",
|
| "//base",
|
| "//base/test:test_support",
|
|
|