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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
|
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/buildflag_header.gni")
import("//build/config/ui.gni")
source_set("common") {
sources = [
"anchor_element_provider.cc",
"anchor_element_provider.h",
"feature_promo/feature_promo_controller.cc",
"feature_promo/feature_promo_controller.h",
"feature_promo/feature_promo_handle.cc",
"feature_promo/feature_promo_handle.h",
"feature_promo/feature_promo_lifecycle.cc",
"feature_promo/feature_promo_lifecycle.h",
"feature_promo/feature_promo_precondition.cc",
"feature_promo/feature_promo_precondition.h",
"feature_promo/feature_promo_registry.cc",
"feature_promo/feature_promo_registry.h",
"feature_promo/feature_promo_result.cc",
"feature_promo/feature_promo_result.h",
"feature_promo/feature_promo_session_policy.cc",
"feature_promo/feature_promo_session_policy.h",
"feature_promo/feature_promo_specification.cc",
"feature_promo/feature_promo_specification.h",
"feature_promo/impl/common_preconditions.cc",
"feature_promo/impl/common_preconditions.h",
"feature_promo/impl/feature_promo_controller_20.cc",
"feature_promo/impl/feature_promo_controller_20.h",
"feature_promo/impl/feature_promo_controller_25.cc",
"feature_promo/impl/feature_promo_controller_25.h",
"feature_promo/impl/feature_promo_queue.cc",
"feature_promo/impl/feature_promo_queue.h",
"feature_promo/impl/feature_promo_queue_set.cc",
"feature_promo/impl/feature_promo_queue_set.h",
"feature_promo/impl/messaging_coordinator.cc",
"feature_promo/impl/messaging_coordinator.h",
"feature_promo/impl/precondition_list_provider.cc",
"feature_promo/impl/precondition_list_provider.h",
"help_bubble/custom_help_bubble.cc",
"help_bubble/custom_help_bubble.h",
"help_bubble/help_bubble.cc",
"help_bubble/help_bubble.h",
"help_bubble/help_bubble_factory.h",
"help_bubble/help_bubble_factory_registry.cc",
"help_bubble/help_bubble_factory_registry.h",
"help_bubble/help_bubble_params.cc",
"help_bubble/help_bubble_params.h",
"new_badge/new_badge_controller.cc",
"new_badge/new_badge_controller.h",
"new_badge/new_badge_policy.cc",
"new_badge/new_badge_policy.h",
"new_badge/new_badge_specification.cc",
"new_badge/new_badge_specification.h",
"ntp_promo/ntp_promo_controller.cc",
"ntp_promo/ntp_promo_controller.h",
"ntp_promo/ntp_promo_identifier.h",
"ntp_promo/ntp_promo_registry.cc",
"ntp_promo/ntp_promo_registry.h",
"ntp_promo/ntp_promo_specification.cc",
"ntp_promo/ntp_promo_specification.h",
"product_messaging_controller.cc",
"product_messaging_controller.h",
"session/user_education_idle_observer.cc",
"session/user_education_idle_observer.h",
"session/user_education_idle_policy.cc",
"session/user_education_idle_policy.h",
"session/user_education_session_manager.cc",
"session/user_education_session_manager.h",
"tutorial/tutorial.cc",
"tutorial/tutorial.h",
"tutorial/tutorial_description.cc",
"tutorial/tutorial_description.h",
"tutorial/tutorial_identifier.h",
"tutorial/tutorial_registry.cc",
"tutorial/tutorial_registry.h",
"tutorial/tutorial_service.cc",
"tutorial/tutorial_service.h",
"user_education_class_properties.cc",
"user_education_class_properties.h",
"user_education_data.cc",
"user_education_data.h",
"user_education_features.cc",
"user_education_features.h",
"user_education_metadata.cc",
"user_education_metadata.h",
"user_education_storage_service.cc",
"user_education_storage_service.h",
]
deps = [
":events",
"//base",
"//components/feature_engagement/public",
"//components/strings",
"//components/variations",
"//components/vector_icons",
"//skia",
"//third_party/abseil-cpp:absl",
"//ui/accessibility",
"//ui/base",
"//ui/menus",
]
}
component("events") {
output_name = "user_education_common_events"
defines = [ "IS_USER_EDUCATION_COMMON_EVENTS_IMPL" ]
sources = [
"user_education_events.cc",
"user_education_events.h",
]
deps = [ "//ui/base" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"anchor_element_provider_unittest.cc",
"feature_promo/feature_promo_controller_unittest.cc",
"feature_promo/feature_promo_lifecycle_unittest.cc",
"feature_promo/feature_promo_precondition_unittest.cc",
"feature_promo/feature_promo_specification_unittest.cc",
"feature_promo/impl/common_preconditions_unittest.cc",
"feature_promo/impl/feature_promo_controller_2x_unittest.cc",
"feature_promo/impl/feature_promo_queue_set_unittest.cc",
"feature_promo/impl/feature_promo_queue_unittest.cc",
"feature_promo/impl/messaging_coordinator_unittest.cc",
"feature_promo/impl/precondition_list_provider_unittest.cc",
"help_bubble/help_bubble_factory_registry_unittest.cc",
"new_badge/new_badge_controller_unittest.cc",
"ntp_promo/ntp_promo_controller_unittest.cc",
"ntp_promo/ntp_promo_registry_unittest.cc",
"product_messaging_controller_unittest.cc",
"session/user_education_session_manager_unittest.cc",
"tutorial/tutorial_unittest.cc",
"user_education_storage_service_unittest.cc",
]
deps = [
":common",
":events",
"//base",
"//base/test:test_support",
"//components/feature_engagement/public",
"//components/feature_engagement/test:test_support",
"//components/strings",
"//components/user_education/test",
"//components/variations",
"//skia",
"//testing/gmock",
"//testing/gtest",
"//third_party/abseil-cpp:absl",
"//ui/accessibility",
"//ui/base",
"//ui/base:test_support",
]
}
|