# Copyright 2021 The Chromium Authors
# 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_manager") {
visibility = [
"//chrome/browser/*",
"//chrome/test/*",
"//components/reporting/*",
]
sources = [
"resource_manager.cc",
"resource_manager.h",
]
deps = [ "//base" ]
}
static_library("resource_managed_buffer") {
visibility = [
"//chrome/browser/*",
"//chrome/test/*",
"//components/reporting/*",
]
sources = [
"resource_managed_buffer.cc",
"resource_managed_buffer.h",
]
deps = [
":resource_manager",
"//base",
"//components/reporting/util:status",
]
}
# 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_managed_buffer_unittest.cc",
"resource_manager_unittest.cc",
]
deps = [
":resource_managed_buffer",
":resource_manager",
"//base",
"//base/test:test_support",
"//components/reporting/util:status",
"//components/reporting/util:status_macros",
"//components/reporting/util:test_callbacks_support",
"//testing/gmock",
"//testing/gtest",
]
}