1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//components/compose/features.gni")
static_library("home_modules") {
sources = [
"card_selection_info.cc",
"card_selection_info.h",
"card_selection_signals.cc",
"card_selection_signals.h",
"ephemeral_home_module_backend.cc",
"ephemeral_home_module_backend.h",
"ephemeral_module_utils.cc",
"ephemeral_module_utils.h",
"home_modules_card_registry.cc",
"home_modules_card_registry.h",
"price_tracking_notification_promo.cc",
"price_tracking_notification_promo.h",
"rank_fetcher_helper.cc",
"rank_fetcher_helper.h",
"send_tab_notification_promo.cc",
"send_tab_notification_promo.h",
]
if (is_ios) {
sources += [
"address_bar_position_ephemeral_module.cc",
"address_bar_position_ephemeral_module.h",
"autofill_passwords_ephemeral_module.cc",
"autofill_passwords_ephemeral_module.h",
"enhanced_safe_browsing_ephemeral_module.cc",
"enhanced_safe_browsing_ephemeral_module.h",
"lens_ephemeral_module.cc",
"lens_ephemeral_module.h",
"save_passwords_ephemeral_module.cc",
"save_passwords_ephemeral_module.h",
]
}
if (is_android) {
sources += [
"auxiliary_search_promo.cc",
"auxiliary_search_promo.h",
"default_browser_promo.cc",
"default_browser_promo.h",
"history_sync_promo.cc",
"history_sync_promo.h",
"quick_delete_promo.cc",
"quick_delete_promo.h",
"tab_group_promo.cc",
"tab_group_promo.h",
"tab_group_sync_promo.cc",
"tab_group_sync_promo.h",
]
}
deps = [
":constants",
"//base",
"//components/commerce/core:feature_list",
"//components/prefs",
"//components/segmentation_platform/embedder/home_modules/tips_manager:constants",
"//components/segmentation_platform/embedder/home_modules/tips_manager:signal_constants",
"//components/segmentation_platform/internal",
"//components/send_tab_to_self",
"//components/signin/public/base:signin_switches",
]
}
source_set("constants") {
sources = [
"constants.cc",
"constants.h",
]
public_deps = [ "//base" ]
deps = [ "//components/segmentation_platform/embedder/home_modules/tips_manager:constants" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"card_selection_signals_unittest.cc",
"ephemeral_home_module_backend_unittest.cc",
"home_modules_card_registry_unittest.cc",
"price_tracking_notification_promo_unittest.cc",
"rank_fetcher_helper_unittest.cc",
"send_tab_notification_promo_unittest.cc",
"test_utils.cc",
"test_utils.h",
]
if (is_ios) {
sources += [
"address_bar_position_ephemeral_module_unittest.cc",
"autofill_passwords_ephemeral_module_unittest.cc",
"enhanced_safe_browsing_ephemeral_module_unittest.cc",
"lens_ephemeral_module_unittest.cc",
"save_passwords_ephemeral_module_unittest.cc",
]
}
if (is_android) {
sources += [
"auxiliary_search_promo_unittest.cc",
"default_browser_promo_unittest.cc",
"history_sync_promo_unittest.cc",
"quick_delete_promo_unittest.cc",
"tab_group_promo_unittest.cc",
"tab_group_sync_promo_unittest.cc",
]
}
deps = [
":constants",
":home_modules",
"//base",
"//base/test:test_support",
"//components/commerce/core:feature_list",
"//components/prefs:test_support",
"//components/segmentation_platform/embedder/default_model:default_model_test_base",
"//components/segmentation_platform/embedder/home_modules/tips_manager:constants",
"//components/segmentation_platform/embedder/home_modules/tips_manager:signal_constants",
"//components/segmentation_platform/internal",
"//components/segmentation_platform/public",
"//components/segmentation_platform/public:test_support",
"//components/send_tab_to_self",
"//components/signin/public/base:signin_switches",
"//testing/gmock",
"//testing/gtest",
]
}
|