1# Copyright 2020 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//testing/test.gni") 6 7static_library("demographics") { 8 sources = [ 9 "demographic_metrics_provider.cc", 10 "demographic_metrics_provider.h", 11 "user_demographics.cc", 12 "user_demographics.h", 13 ] 14 15 public_deps = [ "//third_party/metrics_proto" ] 16 17 deps = [ 18 "//base", 19 "//build:chromeos_buildflags", 20 "//components/metrics", 21 "//components/pref_registry", 22 "//components/prefs", 23 "//components/sync/base", 24 "//components/sync/driver", 25 ] 26} 27 28source_set("unit_tests") { 29 testonly = true 30 sources = [ 31 "demographic_metrics_provider_unittest.cc", 32 "user_demographics_unittest.cc", 33 ] 34 deps = [ 35 ":demographics", 36 "//base", 37 "//base/test:test_support", 38 "//build:chromeos_buildflags", 39 "//components/metrics", 40 "//components/sync:test_support", 41 "//components/sync/base", 42 "//components/sync/driver", 43 "//components/sync_preferences:test_support", 44 "//google_apis", 45 "//testing/gmock", 46 "//testing/gtest", 47 "//third_party/metrics_proto", 48 ] 49} 50 51static_library("test_support") { 52 testonly = true 53 sources = [ 54 "demographic_metrics_test_utils.cc", 55 "demographic_metrics_test_utils.h", 56 ] 57 58 deps = [ 59 "//base", 60 "//components/metrics", 61 "//components/metrics/demographics", 62 "//components/network_time", 63 "//components/prefs", 64 "//components/sync", 65 "//components/sync:test_support", 66 "//third_party/metrics_proto", 67 "//third_party/zlib/google:compression_utils", 68 ] 69} 70