#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/test/base/web_ui_test_data_source.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/data/grit/webui_test_resources.h"
#include "chrome/test/data/grit/webui_test_resources_map.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_ui_data_source.h"
#include "content/public/common/url_constants.h"
#include "services/network/public/mojom/content_security_policy.mojom.h"
#include "ui/resources/grit/webui_resources.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/webui/common/trusted_types_util.h"
#endif
namespace {
void SetupTestDataSource(content::WebUIDataSource* source,
const std::string& scheme) { … }
}
namespace webui {
content::WebUIDataSource* CreateAndAddWebUITestDataSource(
content::BrowserContext* browser_context) { … }
content::WebUIDataSource* CreateAndAddUntrustedWebUITestDataSource(
content::BrowserContext* browser_context) { … }
}