# Copyright 2020 The Chromium Authors
# 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_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",
"//components/sessions:session_id",
"//components/tab_groups",
"//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",
]
}