| # 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("//services/network/public/cpp/features.gni") |
| |
| source_set("first_party_sets_manager") { |
| visibility = [ |
| ":*", |
| "//services/network:network_service", |
| "//services/network:tests", |
| ] |
| |
| defines = [ "IS_NETWORK_SERVICE_IMPL" ] |
| |
| sources = [ |
| "first_party_sets_access_delegate.cc", |
| "first_party_sets_access_delegate.h", |
| "first_party_sets_manager.cc", |
| "first_party_sets_manager.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/cbor", |
| "//components/sqlite_proto", |
| "//services/network/public/cpp", |
| "//services/network/public/mojom", |
| "//sql", |
| "//url", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| |
| defines = [ "IS_NETWORK_SERVICE_IMPL" ] |
| |
| sources = [] |
| |
| deps = [ |
| ":first_party_sets_manager", |
| "//base", |
| "//base/test:test_support", |
| "//components/cbor", |
| "//net", |
| "//net:test_support", |
| "//net/traffic_annotation:test_support", |
| "//services/network/public/mojom", |
| "//testing/gtest", |
| "//url", |
| ] |
| } |
| |
| source_set("tests") { |
| testonly = true |
| |
| defines = [ "IS_NETWORK_SERVICE_IMPL" ] |
| |
| sources = [ |
| "first_party_sets_access_delegate_unittest.cc", |
| "first_party_sets_manager_unittest.cc", |
| ] |
| |
| deps = [ |
| ":first_party_sets_manager", |
| ":test_support", |
| "//base", |
| "//base/test:test_support", |
| "//components/cbor", |
| "//components/sqlite_proto", |
| "//net", |
| "//net:test_support", |
| "//net/traffic_annotation:test_support", |
| "//services/network:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//url", |
| ] |
| } |