| # Copyright 2018 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| static_library("unified_consent") { |
| sources = [ |
| "feature.cc", |
| "feature.h", |
| "pref_names.cc", |
| "pref_names.h", |
| "unified_consent_metrics.cc", |
| "unified_consent_metrics.h", |
| "unified_consent_service.cc", |
| "unified_consent_service.h", |
| "url_keyed_data_collection_consent_helper.cc", |
| "url_keyed_data_collection_consent_helper.h", |
| ] |
| deps = [ |
| "//base", |
| "//components/autofill/core/common", |
| "//components/browser_sync", |
| "//components/pref_registry", |
| "//components/signin/core/browser", |
| "//components/sync", |
| "//components/sync_preferences", |
| "//services/identity/public/cpp", |
| ] |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| sources = [ |
| "scoped_unified_consent.cc", |
| "scoped_unified_consent.h", |
| ] |
| |
| deps = [ |
| "//base/test:test_support", |
| ] |
| |
| public_deps = [ |
| ":unified_consent", |
| "//base", |
| "//components/sync", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "feature_unittest.cc", |
| "unified_consent_service_unittest.cc", |
| "url_keyed_data_collection_consent_helper_unittest.cc", |
| ] |
| deps = [ |
| ":test_support", |
| ":unified_consent", |
| "//base/test:test_support", |
| "//components/sync", |
| "//components/sync:test_support_driver", |
| "//components/sync_preferences:test_support", |
| "//services/identity/public/cpp:test_support", |
| "//testing/gtest", |
| ] |
| } |