| # Copyright 2020 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| visibility = [ "$cobalt_root/*" ] |
| |
| source_set("local_aggregate_storage") { |
| sources = [ |
| "delayed_local_aggregate_storage.cc", |
| "delayed_local_aggregate_storage.h", |
| "immediate_local_aggregate_storage.cc", |
| "immediate_local_aggregate_storage.h", |
| "local_aggregate_storage.cc", |
| "local_aggregate_storage.h", |
| ] |
| public_deps = [ |
| "$cobalt_root/src/lib/util:file_system", |
| "$cobalt_root/src/pb", |
| ] |
| deps = [ |
| "$cobalt_root/src/lib/util:consistent_proto_store", |
| "$cobalt_root/src/lib/util:datetime_util", |
| "$cobalt_root/src/lib/util:hash", |
| "$cobalt_root/src/lib/util:protected_fields", |
| "$cobalt_root/src/local_aggregation_1_1:proto", |
| "$cobalt_root/src/local_aggregation_1_1/aggregation_procedures", |
| "$cobalt_root/src/logger:internal_metrics", |
| "$cobalt_root/src/logger:logger_interface", |
| "$cobalt_root/src/logger:project_context_factory", |
| "$cobalt_root/src/pb:metadata_builder", |
| "$cobalt_root/src/public/lib:registry_identifiers", |
| "$cobalt_root/src/public/lib:status", |
| "$cobalt_root/src/public/lib/statusor", |
| "$cobalt_root/src/registry:cobalt_registry_proto", |
| ] |
| configs += [ "$cobalt_root:cobalt_config" ] |
| } |
| |
| source_set("tests") { |
| testonly = true |
| sources = [ |
| "delayed_local_aggregate_storage_test.cc", |
| "immediate_local_aggregate_storage_test.cc", |
| "local_aggregate_storage_test.cc", |
| ] |
| deps = [ |
| ":local_aggregate_storage", |
| "$cobalt_root/src:logging", |
| "$cobalt_root/src/lib/util:hash", |
| "$cobalt_root/src/lib/util/testing:test_with_files", |
| "$cobalt_root/src/local_aggregation_1_1:proto", |
| "$cobalt_root/src/local_aggregation_1_1/testing:test_registry", |
| "$cobalt_root/src/logger:project_context_factory", |
| "$cobalt_root/src/pb:metadata_builder", |
| "$cobalt_root/src/public/lib/statusor", |
| "$cobalt_root/src/registry:cobalt_registry_proto", |
| "$cobalt_root/src/system_data:fake_system_data", |
| "//third_party/googletest:gmock", |
| "//third_party/googletest:gtest", |
| ] |
| } |