#ifndef CONTENT_PUBLIC_TEST_WEB_UI_BROWSERTEST_UTIL_H_
#define CONTENT_PUBLIC_TEST_WEB_UI_BROWSERTEST_UTIL_H_
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/web_ui_controller_factory.h"
#include "content/public/browser/webui_config.h"
#include "content/public/common/bindings_policy.h"
#include "services/network/public/mojom/cross_origin_opener_policy.mojom.h"
namespace content {
struct TestUntrustedDataSourceHeaders { … };
void AddUntrustedDataSource(
BrowserContext* browser_context,
const std::string& host,
std::optional<TestUntrustedDataSourceHeaders> headers = std::nullopt);
GURL GetChromeUntrustedUIURL(const std::string& host_and_path);
class TestWebUIConfig : public content::WebUIConfig { … };
class TestWebUIControllerFactory : public WebUIControllerFactory { … };
}
#endif