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

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

#include <optional>

#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/test/gmock_expected_support.h"
#include "chrome/browser/ui/web_applications/test/isolated_web_app_test_utils.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_url_info.h"
#include "chrome/browser/web_applications/isolated_web_apps/test/isolated_web_app_builder.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/spawned_test_server/spawned_test_server.h"
#include "net/test/test_data_directory.h"

namespace web_app {

class IsolatedWebAppCspBrowserTest : public IsolatedWebAppBrowserTestHarness {};

// Tests that the <base> element is not allowed.
IN_PROC_BROWSER_TEST_F(IsolatedWebAppCspBrowserTest, Base) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppCspBrowserTest, Src) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppCspBrowserTest, TrustedTypes) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppCspBrowserTest, Wasm) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppCspBrowserTest, UnsafeInlineStyleSrc) {}

IN_PROC_BROWSER_TEST_F(IsolatedWebAppCspBrowserTest, ProxyMode) {}

struct WebSocketTestParam {};

class IsolatedWebAppWebSocketCspBrowserTest
    : public IsolatedWebAppCspBrowserTest,
      public testing::WithParamInterface<WebSocketTestParam> {};

IN_PROC_BROWSER_TEST_P(IsolatedWebAppWebSocketCspBrowserTest, CheckCsp) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace web_app