saved_desk_test_util.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef COMPONENTS_DESKS_STORAGE_CORE_SAVED_DESK_TEST_UTIL_H_
  5. #define COMPONENTS_DESKS_STORAGE_CORE_SAVED_DESK_TEST_UTIL_H_
  6. #include <string>
  7. #include <vector>
  8. #include "base/time/time.h"
  9. #include "components/app_restore/restore_data.h"
  10. #include "url/gurl.h"
  11. namespace desks_storage {
  12. namespace saved_desk_test_util {
  13. // Adds a Chrome browser window to `out_restore_data`.
  14. void AddBrowserWindow(bool is_lacros,
  15. int window_id,
  16. std::vector<GURL> urls,
  17. app_restore::RestoreData* out_restore_data);
  18. // Adds a PWA window to `out_restore_data`.
  19. void AddPwaWindow(bool is_lacros,
  20. int window_id,
  21. std::string url,
  22. app_restore::RestoreData* out_restore_data);
  23. // Adds a Generic app window to `out_restore_data`.
  24. void AddGenericAppWindow(int window_id,
  25. std::string app_id,
  26. app_restore::RestoreData* out_restore_data);
  27. } // namespace saved_desk_test_util
  28. } // namespace desks_storage
  29. #endif // COMPONENTS_DESKS_STORAGE_CORE_SAVED_DESK_TEST_UTIL_H_