OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//testing/test.gni") |
| 6 |
| 7 # The Url-Keyed Metrics (UKM) service is responsible for gathering and |
| 8 # uploading reports that contain fine grained performance metrics including |
| 9 # URLs for top-level navigations. |
| 10 static_library("ukm") { |
| 11 sources = [ |
| 12 "metrics_reporting_scheduler.cc", |
| 13 "metrics_reporting_scheduler.h", |
| 14 "persisted_logs_metrics_impl.cc", |
| 15 "persisted_logs_metrics_impl.h", |
| 16 "ukm_pref_names.cc", |
| 17 "ukm_pref_names.h", |
| 18 "ukm_service.cc", |
| 19 "ukm_service.h", |
| 20 ] |
| 21 |
| 22 deps = [ |
| 23 "//base", |
| 24 "//components/data_use_measurement/core", |
| 25 "//components/metrics", |
| 26 "//components/prefs", |
| 27 "//components/variations", |
| 28 ] |
| 29 } |
| 30 |
| 31 # Helper library for observing signals that we need to clear any local data. |
| 32 static_library("observers") { |
| 33 sources = [ |
| 34 "observers/history_delete_observer.cc", |
| 35 "observers/history_delete_observer.h", |
| 36 ] |
| 37 |
| 38 deps = [ |
| 39 "//base", |
| 40 "//components/history/core/browser", |
| 41 ] |
| 42 } |
| 43 |
| 44 source_set("unit_tests") { |
| 45 testonly = true |
| 46 sources = [ |
| 47 "ukm_service_unittest.cc", |
| 48 ] |
| 49 |
| 50 deps = [ |
| 51 ":ukm", |
| 52 "//base", |
| 53 "//base/test:test_support", |
| 54 "//components/metrics", |
| 55 "//components/metrics:test_support", |
| 56 "//components/prefs:test_support", |
| 57 "//net:test_support", |
| 58 "//testing/gtest", |
| 59 "//url", |
| 60 ] |
| 61 } |
| 62 |
| 63 # Convenience testing target |
| 64 test("ukm_unittests") { |
| 65 deps = [ |
| 66 ":unit_tests", |
| 67 "//base", |
| 68 "//base/test:run_all_unittests", |
| 69 "//base/test:test_support", |
| 70 ] |
| 71 } |
OLD | NEW |