12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Copyright 2022 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.
- #ifndef COMPONENTS_DESKS_STORAGE_CORE_SAVED_DESK_TEST_UTIL_H_
- #define COMPONENTS_DESKS_STORAGE_CORE_SAVED_DESK_TEST_UTIL_H_
- #include <string>
- #include <vector>
- #include "base/time/time.h"
- #include "components/app_restore/restore_data.h"
- #include "url/gurl.h"
- namespace desks_storage {
- namespace saved_desk_test_util {
- // Adds a Chrome browser window to `out_restore_data`.
- void AddBrowserWindow(bool is_lacros,
- int window_id,
- std::vector<GURL> urls,
- app_restore::RestoreData* out_restore_data);
- // Adds a PWA window to `out_restore_data`.
- void AddPwaWindow(bool is_lacros,
- int window_id,
- std::string url,
- app_restore::RestoreData* out_restore_data);
- // Adds a Generic app window to `out_restore_data`.
- void AddGenericAppWindow(int window_id,
- std::string app_id,
- app_restore::RestoreData* out_restore_data);
- } // namespace saved_desk_test_util
- } // namespace desks_storage
- #endif // COMPONENTS_DESKS_STORAGE_CORE_SAVED_DESK_TEST_UTIL_H_
|