naiveproxy/components/unified_consent/BUILD.gn

66 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-08-15 01:19:20 +03:00
# 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_service.cc",
"unified_consent_service.h",
"unified_consent_service_client.cc",
"unified_consent_service_client.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",
"//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/autofill/core/common",
"//components/sync",
"//components/sync:test_support_driver",
"//components/sync_preferences:test_support",
"//services/identity/public/cpp:test_support",
"//testing/gtest",
]
}