123456789101112131415161718192021222324252627282930313233343536373839 |
- # 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 = [
- "//chrome/browser/*",
- "//chrome/test/*",
- "//components/reporting/*",
- ]
- 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",
- ]
- }
|