| # Copyright 2020 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("federated_learning") { |
| sources = [ |
| "features/features.cc", |
| "features/features.h", |
| "floc_constants.cc", |
| "floc_constants.h", |
| "floc_id.cc", |
| "floc_id.h", |
| "floc_sorting_lsh_clusters_service.cc", |
| "floc_sorting_lsh_clusters_service.h", |
| "sim_hash.cc", |
| "sim_hash.h", |
| ] |
| |
| public_deps = [ |
| "//content/public/common:common", |
| "//third_party/protobuf:protobuf_lite", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/prefs:prefs", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "floc_id_unittest.cc", |
| "floc_sorting_lsh_clusters_service_unittest.cc", |
| "sim_hash_unittest.cc", |
| ] |
| |
| deps = [ |
| ":federated_learning", |
| "//base", |
| "//base/test:test_support", |
| "//components/prefs:test_support", |
| "//testing/gtest", |
| ] |
| } |