blob: 6d668dc0caa438d2c481184fbb663eb28d08c814 [file] [log] [blame]
# Copyright 2021 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.
import("//build/config/features.gni")
static_library("resource_interface") {
visibility = [ "//components/reporting/storage/*" ]
sources = [
"disk_resource_impl.cc",
"disk_resource_impl.h",
"memory_resource_impl.cc",
"memory_resource_impl.h",
"resource_interface.cc",
"resource_interface.h",
]
deps = [ "//base" ]
}
# All unit tests are built as part of the //components:components_unittests
# target and must be one targets named "unit_tests".
# TODO(chromium:1169835) These tests can't be run on iOS until they are updated.
source_set("unit_tests") {
testonly = true
sources = [ "resource_interface_unittest.cc" ]
deps = [
":resource_interface",
"//base",
"//base/test:test_support",
"//components/reporting/util:test_callbacks_support",
"//testing/gmock",
"//testing/gtest",
]
}