# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/test.gni")
static_library("demographics") {
sources = [
"demographic_metrics_provider.cc",
"demographic_metrics_provider.h",
"user_demographics.cc",
"user_demographics.h",
]
public_deps = [ "//third_party/metrics_proto" ]
deps = [
"//base",
"//build:chromeos_buildflags",
"//components/metrics",
"//components/pref_registry",
"//components/prefs",
"//components/sync/base",
"//components/sync/service",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"demographic_metrics_provider_unittest.cc",
"user_demographics_unittest.cc",
]
deps = [
":demographics",
"//base",
"//base/test:test_support",
"//build:chromeos_buildflags",
"//components/metrics",
"//components/sync:test_support",
"//components/sync/base",
"//components/sync/service",
"//components/sync_preferences:test_support",
"//google_apis",
"//testing/gmock",
"//testing/gtest",
"//third_party/metrics_proto",
]
}
static_library("test_support") {
testonly = true
sources = [
"demographic_metrics_test_utils.cc",
"demographic_metrics_test_utils.h",
]
deps = [
"//base",
"//components/metrics",
"//components/metrics/demographics",
"//components/network_time",
"//components/prefs",
"//components/sync",
"//components/sync:test_support",
"//third_party/metrics_proto",
"//third_party/zlib/google:compression_utils",
]
}