| Index: components/ukm/BUILD.gn
|
| diff --git a/components/ukm/BUILD.gn b/components/ukm/BUILD.gn
|
| index 5b97d07fc98382a7b66f922ace57e9f0e4e22ded..4cd8a19599aa5a89a94023049aee5b427ef3ea35 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 = [
|
| @@ -25,6 +27,7 @@ static_library("ukm") {
|
| "//components/metrics",
|
| "//components/prefs",
|
| "//components/variations",
|
| + "//url",
|
| ]
|
| }
|
|
|
| @@ -41,6 +44,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 +68,7 @@ source_set("unit_tests") {
|
| ]
|
|
|
| deps = [
|
| + ":test_support",
|
| ":ukm",
|
| "//base",
|
| "//base/test:test_support",
|
| @@ -56,6 +77,7 @@ source_set("unit_tests") {
|
| "//components/prefs:test_support",
|
| "//net:test_support",
|
| "//testing/gtest",
|
| + "//third_party/zlib:compression_utils",
|
| "//url",
|
| ]
|
| }
|
|
|