summaryrefslogtreecommitdiff
path: root/chromium/components/federated_learning/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/federated_learning/BUILD.gn')
-rw-r--r--chromium/components/federated_learning/BUILD.gn37
1 files changed, 37 insertions, 0 deletions
diff --git a/chromium/components/federated_learning/BUILD.gn b/chromium/components/federated_learning/BUILD.gn
new file mode 100644
index 00000000000..406236fdb41
--- /dev/null
+++ b/chromium/components/federated_learning/BUILD.gn
@@ -0,0 +1,37 @@
+# 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 = [
+ "floc_blocklist_service.cc",
+ "floc_blocklist_service.h",
+ "floc_constants.cc",
+ "floc_constants.h",
+ "floc_id.cc",
+ "floc_id.h",
+ "sim_hash.cc",
+ "sim_hash.h",
+ ]
+
+ public_deps = [
+ "//components/federated_learning/proto:federated_learning",
+ "//third_party/protobuf:protobuf_lite",
+ ]
+
+ deps = [ "//base" ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "floc_blocklist_service_unittest.cc",
+ "sim_hash_unittest.cc",
+ ]
+ deps = [
+ ":federated_learning",
+ "//base",
+ "//base/test:test_support",
+ "//testing/gtest",
+ ]
+}