BUILD.gn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 2017 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. import("//testing/test.gni")
  6. import("//tools/grit/repack.gni")
  7. if (is_android) {
  8. import("//build/config/android/rules.gni")
  9. }
  10. if (!is_ios) {
  11. test("offline_pages_unittests") {
  12. deps = [
  13. ":unit_tests",
  14. "//components/test:run_all_unittests",
  15. ]
  16. if (!is_fuchsia) {
  17. # On Fuchsia, components/test/data seems to change spuriously,
  18. # breaking incremental compilation.
  19. data = [ "../test" ]
  20. }
  21. if (is_android) {
  22. # renovations tests depend on content shell and UI. For some reason.
  23. # these deps need to be on the test() target and not the source_set
  24. # for renovations.
  25. deps += [
  26. "//content/shell/android:content_shell_assets",
  27. "//net/android:net_java",
  28. "//ui/android:ui_java",
  29. ]
  30. }
  31. }
  32. group("unit_tests") {
  33. testonly = true
  34. deps = [
  35. "//components/offline_pages/content/background_loader:unit_tests",
  36. "//components/offline_pages/core:unit_tests",
  37. "//components/offline_pages/core/background:unit_tests",
  38. "//components/offline_pages/core/downloads:unit_tests",
  39. "//components/offline_pages/core/prefetch:unit_tests",
  40. "//components/offline_pages/core/request_header:unit_tests",
  41. "//components/offline_pages/task:unit_tests",
  42. ]
  43. }
  44. }