| # Copyright 2020 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| component("app_restore") { |
| output_name = "app_restore_lib" |
| sources = [ |
| "app_launch_info.cc", |
| "app_launch_info.h", |
| "app_restore_arc_info.cc", |
| "app_restore_arc_info.h", |
| "app_restore_data.cc", |
| "app_restore_data.h", |
| "app_restore_info.cc", |
| "app_restore_info.h", |
| "app_restore_utils.cc", |
| "app_restore_utils.h", |
| "arc_read_handler.cc", |
| "arc_read_handler.h", |
| "arc_save_handler.cc", |
| "arc_save_handler.h", |
| "desk_template_read_handler.cc", |
| "desk_template_read_handler.h", |
| "features.cc", |
| "features.h", |
| "full_restore_file_handler.cc", |
| "full_restore_file_handler.h", |
| "full_restore_read_handler.cc", |
| "full_restore_read_handler.h", |
| "full_restore_save_handler.cc", |
| "full_restore_save_handler.h", |
| "full_restore_utils.cc", |
| "full_restore_utils.h", |
| "lacros_read_handler.cc", |
| "lacros_read_handler.h", |
| "lacros_save_handler.cc", |
| "lacros_save_handler.h", |
| "restore_data.cc", |
| "restore_data.h", |
| "window_info.cc", |
| "window_info.h", |
| "window_properties.cc", |
| "window_properties.h", |
| ] |
| |
| defines = [ "IS_APP_RESTORE_IMPL" ] |
| |
| public_deps = [ |
| "//ash/constants", |
| "//base", |
| "//chromeos/ui/base:base", |
| "//components/account_id:account_id", |
| "//components/services/app_service/public/cpp:app_types", |
| "//components/services/app_service/public/cpp:app_update", |
| "//components/services/app_service/public/cpp:intents", |
| "//components/services/app_service/public/mojom", |
| "//components/sessions:session_id", |
| "//ui/aura", |
| "//ui/views", |
| ] |
| |
| deps = [ "//components/app_constants" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "app_restore_info_unittest.cc", |
| "full_restore_read_and_save_unittest.cc", |
| "restore_data_unittest.cc", |
| ] |
| |
| deps = [ |
| ":app_restore", |
| "//components/app_constants", |
| "//content/test:test_support", |
| "//testing/gtest", |
| "//ui/aura:test_support", |
| "//ui/views:test_support", |
| ] |
| } |