#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 { … };
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(…);
}