Zach Trudo | 059a3d1 | 2021-01-29 21:47:06 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//build/config/features.gni") |
| 6 | |
| 7 | static_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. |
| 24 | source_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 Baraz | 8b54fdd | 2021-03-10 16:24:52 | [diff] [blame^] | 31 | "//components/reporting/util:test_callbacks_support", |
Zach Trudo | 059a3d1 | 2021-01-29 21:47:06 | [diff] [blame] | 32 | "//testing/gmock", |
| 33 | "//testing/gtest", |
| 34 | ] |
| 35 | } |