Justin DeWitt | f226dcb8 | 2017-11-02 04:49:13 | [diff] [blame] | 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 | |
| 5 | import("//build/config/features.gni") |
| 6 | import("//testing/test.gni") |
| 7 | import("//tools/grit/repack.gni") |
| 8 | |
| 9 | if (is_android) { |
| 10 | import("//build/config/android/rules.gni") |
| 11 | } |
| 12 | |
| 13 | if (!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 DeWitt | a0c712b | 2018-02-20 23:49:04 | [diff] [blame] | 26 | "//net/android:net_java", |
Justin DeWitt | f226dcb8 | 2017-11-02 04:49:13 | [diff] [blame] | 27 | "//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 DeWitt | 1d2554f9 | 2018-09-07 19:02:08 | [diff] [blame] | 41 | "//components/offline_pages/task:unit_tests", |
Justin DeWitt | f226dcb8 | 2017-11-02 04:49:13 | [diff] [blame] | 42 | ] |
| 43 | } |
| 44 | } |