# Copyright 2017 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") import("//testing/test.gni") import("//tools/grit/repack.gni") if (is_android) { import("//build/config/android/rules.gni") } if (!is_ios) { test("offline_pages_unittests") { deps = [ ":unit_tests", "//components/test:run_all_unittests", ] if (!is_fuchsia) { # On Fuchsia, components/test/data seems to change spuriously, # breaking incremental compilation. data = [ "../test" ] } if (is_android) { # renovations tests depend on content shell and UI. For some reason. # these deps need to be on the test() target and not the source_set # for renovations. deps += [ "//content/shell/android:content_shell_assets", "//net/android:net_java", "//ui/android:ui_java", ] } } group("unit_tests") { testonly = true deps = [ "//components/offline_pages/content/background_loader:unit_tests", "//components/offline_pages/core:unit_tests", "//components/offline_pages/core/background:unit_tests", "//components/offline_pages/core/downloads:unit_tests", "//components/offline_pages/core/prefetch:unit_tests", "//components/offline_pages/core/request_header:unit_tests", "//components/offline_pages/task:unit_tests", ] } }