blob: bad0300c54ba191984f34c6810ef773f92dedc4a [file] [log] [blame]
Justin DeWittf226dcb82017-11-02 04:49:131# 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
5import("//build/config/features.gni")
6import("//testing/test.gni")
7import("//tools/grit/repack.gni")
8
9if (is_android) {
10 import("//build/config/android/rules.gni")
11}
12
13if (!is_ios) {
14 test("offline_pages_unittests") {
15 deps = [
16 ":unit_tests",
17 "//components/test:run_all_unittests",
18 ]
19
20 if (is_android) {
21 # renovations tests depend on content shell and UI. For some reason.
22 # these deps need to be on the test() target and not the source_set
23 # for renovations.
24 deps += [
25 "//content/shell/android:content_shell_assets",
Justin DeWitta0c712b2018-02-20 23:49:0426 "//net/android:net_java",
Justin DeWittf226dcb82017-11-02 04:49:1327 "//ui/android:ui_java",
28 ]
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",
Justin DeWitt1d2554f92018-09-07 19:02:0841 "//components/offline_pages/task:unit_tests",
Justin DeWittf226dcb82017-11-02 04:49:1342 ]
43 }
44}