BUILD.gn 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # Copyright 2020 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. component("app_restore") {
  5. output_name = "app_restore_lib"
  6. sources = [
  7. "app_launch_info.cc",
  8. "app_launch_info.h",
  9. "app_restore_arc_info.cc",
  10. "app_restore_arc_info.h",
  11. "app_restore_data.cc",
  12. "app_restore_data.h",
  13. "app_restore_info.cc",
  14. "app_restore_info.h",
  15. "app_restore_utils.cc",
  16. "app_restore_utils.h",
  17. "arc_read_handler.cc",
  18. "arc_read_handler.h",
  19. "arc_save_handler.cc",
  20. "arc_save_handler.h",
  21. "desk_template_read_handler.cc",
  22. "desk_template_read_handler.h",
  23. "features.cc",
  24. "features.h",
  25. "full_restore_file_handler.cc",
  26. "full_restore_file_handler.h",
  27. "full_restore_read_handler.cc",
  28. "full_restore_read_handler.h",
  29. "full_restore_save_handler.cc",
  30. "full_restore_save_handler.h",
  31. "full_restore_utils.cc",
  32. "full_restore_utils.h",
  33. "lacros_read_handler.cc",
  34. "lacros_read_handler.h",
  35. "lacros_save_handler.cc",
  36. "lacros_save_handler.h",
  37. "restore_data.cc",
  38. "restore_data.h",
  39. "tab_group_info.cc",
  40. "tab_group_info.h",
  41. "window_info.cc",
  42. "window_info.h",
  43. "window_properties.cc",
  44. "window_properties.h",
  45. ]
  46. defines = [ "IS_APP_RESTORE_IMPL" ]
  47. public_deps = [
  48. "//ash/constants",
  49. "//base",
  50. "//chromeos/ui/base:base",
  51. "//components/account_id:account_id",
  52. "//components/services/app_service/public/cpp:app_types",
  53. "//components/services/app_service/public/cpp:app_update",
  54. "//components/services/app_service/public/cpp:intents",
  55. "//components/services/app_service/public/mojom",
  56. "//components/sessions:session_id",
  57. "//components/tab_groups",
  58. "//ui/aura",
  59. "//ui/views",
  60. ]
  61. deps = [ "//components/app_constants" ]
  62. }
  63. source_set("unit_tests") {
  64. testonly = true
  65. sources = [
  66. "app_restore_info_unittest.cc",
  67. "full_restore_read_and_save_unittest.cc",
  68. "restore_data_unittest.cc",
  69. ]
  70. deps = [
  71. ":app_restore",
  72. "//components/app_constants",
  73. "//content/test:test_support",
  74. "//testing/gtest",
  75. "//ui/aura:test_support",
  76. "//ui/views:test_support",
  77. ]
  78. }