blob: caa2895fc8effeb17f8793931e19a648d09b4635 [file] [log] [blame]
# 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" ]
deps = [
"$cobalt_root/src/lib/util:consistent_proto_store",
"$cobalt_root/src/lib/util:protected_fields",
"$cobalt_root/src/lib/util:status",
"$cobalt_root/src/local_aggregation_1_1:proto",
"$cobalt_root/src/logger:internal_metrics",
"$cobalt_root/src/logger:logger_interface",
"$cobalt_root/src/logger:project_context_factory",
"$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",
]
deps = [
":local_aggregate_storage",
"$cobalt_root/src:logging",
"$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/registry:cobalt_registry_proto",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}