BUILD.gn 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Copyright 2022 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. import("//build/buildflag_header.gni")
  5. import("//build/config/ui.gni")
  6. source_set("common") {
  7. sources = [
  8. "feature_promo_controller.cc",
  9. "feature_promo_controller.h",
  10. "feature_promo_handle.cc",
  11. "feature_promo_handle.h",
  12. "feature_promo_registry.cc",
  13. "feature_promo_registry.h",
  14. "feature_promo_snooze_service.cc",
  15. "feature_promo_snooze_service.h",
  16. "feature_promo_specification.cc",
  17. "feature_promo_specification.h",
  18. "help_bubble.cc",
  19. "help_bubble.h",
  20. "help_bubble_factory.h",
  21. "help_bubble_factory_registry.cc",
  22. "help_bubble_factory_registry.h",
  23. "help_bubble_params.cc",
  24. "help_bubble_params.h",
  25. "scoped_new_badge_tracker_base.cc",
  26. "scoped_new_badge_tracker_base.h",
  27. "tutorial.cc",
  28. "tutorial.h",
  29. "tutorial_description.cc",
  30. "tutorial_description.h",
  31. "tutorial_identifier.h",
  32. "tutorial_registry.cc",
  33. "tutorial_registry.h",
  34. "tutorial_service.cc",
  35. "tutorial_service.h",
  36. "user_education_class_properties.cc",
  37. "user_education_class_properties.h",
  38. ]
  39. deps = [
  40. "//base",
  41. "//components/feature_engagement/public",
  42. "//components/strings",
  43. "//components/variations",
  44. "//components/vector_icons",
  45. "//skia",
  46. "//third_party/abseil-cpp:absl",
  47. "//ui/accessibility",
  48. "//ui/base",
  49. ]
  50. }
  51. source_set("unit_tests") {
  52. testonly = true
  53. sources = [
  54. "feature_promo_snooze_service_unittest.cc",
  55. "help_bubble_factory_registry_unittest.cc",
  56. "tutorial_unittest.cc",
  57. ]
  58. deps = [
  59. ":common",
  60. "//base",
  61. "//base/test:test_support",
  62. "//components/feature_engagement/public",
  63. "//components/strings",
  64. "//components/user_education/test",
  65. "//components/variations",
  66. "//skia",
  67. "//testing/gmock",
  68. "//testing/gtest",
  69. "//third_party/abseil-cpp:absl",
  70. "//ui/accessibility",
  71. "//ui/base",
  72. "//ui/base:test_support",
  73. ]
  74. }