| # 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", |
| "menu/highlighting_menu_button_helper.cc", |
| "menu/highlighting_menu_button_helper.h", |
| "menu/highlighting_simple_menu_model_delegate.cc", |
| "menu/highlighting_simple_menu_model_delegate.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_order.cc", |
| "ntp_promo/ntp_promo_order.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_context.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/interaction", |
| "//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 = [ |
| "//base", |
| "//ui/base/interaction", |
| ] |
| } |
| |
| 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_order_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/interaction:test_support", |
| ] |
| |
| # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and |
| # enable the diagnostic by removing this line. |
| configs += [ "//build/config/compiler:no_exit_time_destructors" ] |
| } |