chromium/chrome/browser/ui/web_applications/web_app_tab_restore_browsertest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <list>

#include "build/build_config.h"
#include "chrome/browser/sessions/tab_restore_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/web_applications/app_browser_controller.h"
#include "chrome/browser/ui/web_applications/test/web_app_browsertest_util.h"
#include "chrome/browser/ui/web_applications/test/web_app_navigation_browsertest.h"
#include "components/sessions/core/tab_restore_service.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/geometry/rect.h"

namespace web_app {

WebAppTabRestoreBrowserTest;

// Tests that desktop PWAs are reopened at the correct size.
// TODO(crbug.com/40852083): Flaky on Linux.
#if BUILDFLAG(IS_LINUX)
#define MAYBE_ReopenedPWASizeIsCorrectlyRestored
#else
#define MAYBE_ReopenedPWASizeIsCorrectlyRestored
#endif
IN_PROC_BROWSER_TEST_F(WebAppTabRestoreBrowserTest,
                       MAYBE_ReopenedPWASizeIsCorrectlyRestored) {}

// Tests that app windows are correctly restored.
IN_PROC_BROWSER_TEST_F(WebAppTabRestoreBrowserTest, RestoreAppWindow) {}

// Tests that app popup windows are correctly restored.
IN_PROC_BROWSER_TEST_F(WebAppTabRestoreBrowserTest, RestoreAppPopupWindow) {}

}  // namespace web_app