chromium/chrome/browser/web_applications/isolated_web_apps/isolated_web_app_dev_tools_browsertest.cc

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

#include <memory>

#include "base/check_deref.h"
#include "base/files/file_path.h"
#include "chrome/browser/devtools/devtools_window_testing.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/web_applications/test/isolated_web_app_test_utils.h"
#include "chrome/browser/ui/web_applications/test/web_app_browsertest_util.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_url_info.h"
#include "chrome/browser/web_applications/test/web_app_test_utils.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

Eq;
StartsWith;

namespace web_app {

namespace {
constexpr std::string_view kTypeApp =;
constexpr std::string_view kIsolatedAppTitle =;
}
class IsolatedWebAppDevToolsTest : public IsolatedWebAppBrowserTestHarness {};

// TODO (crbug.com/1522953): Resolve flakiness on linux debug builds.
#if BUILDFLAG(IS_LINUX) && !defined(NDEBUG)
#define MAYBE_ErrorPage
#else
#define MAYBE_ErrorPage
#endif
IN_PROC_BROWSER_TEST_F(IsolatedWebAppDevToolsTest, MAYBE_ErrorPage) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppDevToolsTest, IwaIdentifiedAsApp) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppDevToolsTest, IwaWithCorrectTitle) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppDevToolsTest, PwaIdentifiedAsPage) {}

}  // namespace web_app