Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / components / web_resource / BUILD.gn
blobda7869a70cfb79db5879cd17c4a8f412a738c811
1 # Copyright 2014 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.
5 static_library("web_resource") {
6   sources = [
7     "eula_accepted_notifier.cc",
8     "eula_accepted_notifier.h",
9     "notification_promo.cc",
10     "notification_promo.h",
11     "promo_resource_service.cc",
12     "promo_resource_service.h",
13     "resource_request_allowed_notifier.cc",
14     "resource_request_allowed_notifier.h",
15     "web_resource_pref_names.cc",
16     "web_resource_pref_names.h",
17     "web_resource_service.cc",
18     "web_resource_service.h",
19     "web_resource_switches.cc",
20     "web_resource_switches.h",
21   ]
23   if (is_android || is_ios) {
24     sources += [
25       "notification_promo_mobile_ntp.cc",
26       "notification_promo_mobile_ntp.h",
27     ]
28   }
30   deps = [
31     "//base",
32     "//base:prefs",
33     "//components/pref_registry",
34     "//components/version_info",
35     "//net",
36     "//ui/base",
37   ]
40 static_library("test_support") {
41   sources = [
42     "resource_request_allowed_notifier_test_util.cc",
43     "resource_request_allowed_notifier_test_util.h",
44   ]
46   deps = [
47     ":web_resource",
48     "//base",
49   ]
52 source_set("unit_tests") {
53   testonly = true
54   sources = [
55     "eula_accepted_notifier_unittest.cc",
56     "promo_resource_service_unittest.cc",
57     "resource_request_allowed_notifier_unittest.cc",
58   ]
60   if (is_android || is_ios) {
61     sources += [ "promo_resource_service_mobile_ntp_unittest.cc" ]
62   }
64   deps = [
65     ":web_resource",
66     ":test_support",
67     "//base",
68     "//base:prefs_test_support",
69     "//testing/gtest",
70     "//third_party/icu",
71   ]