blob: d77b1f47397c1720e7b97a8e9af98a290c036dee [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2021 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
Zach Trudo059a3d12021-01-29 21:47:063# found in the LICENSE file.
4
5import("//build/config/features.gni")
6
Leonid Baraz2b2e0b52022-12-13 03:25:077static_library("resource_manager") {
Leonid Barazd8190172022-06-07 07:42:058 visibility = [
9 "//chrome/browser/*",
Leonid Baraza2064292022-07-07 00:18:4110 "//chrome/test/*",
Leonid Barazd8190172022-06-07 07:42:0511 "//components/reporting/*",
12 ]
Zach Trudo059a3d12021-01-29 21:47:0613 sources = [
Leonid Baraz2b2e0b52022-12-13 03:25:0714 "resource_manager.cc",
15 "resource_manager.h",
Zach Trudo059a3d12021-01-29 21:47:0616 ]
17
18 deps = [ "//base" ]
19}
20
Leonid Barazc3fd63362023-01-31 01:34:5921static_library("resource_managed_buffer") {
22 visibility = [
23 "//chrome/browser/*",
24 "//chrome/test/*",
25 "//components/reporting/*",
26 ]
27
28 sources = [
29 "resource_managed_buffer.cc",
30 "resource_managed_buffer.h",
31 ]
32
33 deps = [
34 ":resource_manager",
35 "//base",
36 "//components/reporting/util:status",
37 ]
38}
39
Zach Trudo059a3d12021-01-29 21:47:0640# All unit tests are built as part of the //components:components_unittests
41# target and must be one targets named "unit_tests".
42# TODO(chromium:1169835) These tests can't be run on iOS until they are updated.
43source_set("unit_tests") {
44 testonly = true
Leonid Barazc3fd63362023-01-31 01:34:5945 sources = [
46 "resource_managed_buffer_unittest.cc",
47 "resource_manager_unittest.cc",
48 ]
Zach Trudo059a3d12021-01-29 21:47:0649 deps = [
Leonid Barazc3fd63362023-01-31 01:34:5950 ":resource_managed_buffer",
Leonid Baraz2b2e0b52022-12-13 03:25:0751 ":resource_manager",
Zach Trudo059a3d12021-01-29 21:47:0652 "//base",
53 "//base/test:test_support",
Leonid Barazc3fd63362023-01-31 01:34:5954 "//components/reporting/util:status",
Hong Xu39badcc02023-11-21 00:12:1455 "//components/reporting/util:status_macros",
Leonid Baraz8b54fdd2021-03-10 16:24:5256 "//components/reporting/util:test_callbacks_support",
Zach Trudo059a3d12021-01-29 21:47:0657 "//testing/gmock",
58 "//testing/gtest",
59 ]
60}