blob: 6d668dc0caa438d2c481184fbb663eb28d08c814 [file] [log] [blame]
Zach Trudo059a3d12021-01-29 21:47:061# Copyright 2021 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD - style license that can be
3# found in the LICENSE file.
4
5import("//build/config/features.gni")
6
7static_library("resource_interface") {
8 visibility = [ "//components/reporting/storage/*" ]
9 sources = [
10 "disk_resource_impl.cc",
11 "disk_resource_impl.h",
12 "memory_resource_impl.cc",
13 "memory_resource_impl.h",
14 "resource_interface.cc",
15 "resource_interface.h",
16 ]
17
18 deps = [ "//base" ]
19}
20
21# All unit tests are built as part of the //components:components_unittests
22# target and must be one targets named "unit_tests".
23# TODO(chromium:1169835) These tests can't be run on iOS until they are updated.
24source_set("unit_tests") {
25 testonly = true
26 sources = [ "resource_interface_unittest.cc" ]
27 deps = [
28 ":resource_interface",
29 "//base",
30 "//base/test:test_support",
Leonid Baraz8b54fdd2021-03-10 16:24:5231 "//components/reporting/util:test_callbacks_support",
Zach Trudo059a3d12021-01-29 21:47:0632 "//testing/gmock",
33 "//testing/gtest",
34 ]
35}