#include "content/public/browser/webui_config_map.h"
#include <string_view>
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/webui_config.h"
#include "content/public/test/scoped_web_ui_controller_factory_registration.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
constexpr const char kChromeFoo[] = …;
constexpr const char kChromeBar[] = …;
constexpr const char kChromeUntrustedFoo[] = …;
constexpr const char kChromeUntrustedBar[] = …;
BrowserContext* kBrowserContext = …;
class TestConfig : public WebUIConfig { … };
}
TEST(WebUIConfigTest, AddAndRemoveChromeUrl) { … }
TEST(WebUIConfigTest, AddAndRemoteChromeUntrustedUrl) { … }
class WebUiConfigDeathTest : public testing::Test,
public ::testing::WithParamInterface<const char*> { … };
TEST_P(WebUiConfigDeathTest, GetAndRemoveNonChromeUrls) { … }
INSTANTIATE_TEST_SUITE_P(…);
}