BUILD.gn 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. import("//build/config/features.gni")
  5. static_library("resource_interface") {
  6. visibility = [
  7. "//chrome/browser/*",
  8. "//chrome/test/*",
  9. "//components/reporting/*",
  10. ]
  11. sources = [
  12. "disk_resource_impl.cc",
  13. "disk_resource_impl.h",
  14. "memory_resource_impl.cc",
  15. "memory_resource_impl.h",
  16. "resource_interface.cc",
  17. "resource_interface.h",
  18. ]
  19. deps = [ "//base" ]
  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",
  31. "//components/reporting/util:test_callbacks_support",
  32. "//testing/gmock",
  33. "//testing/gtest",
  34. ]
  35. }