#include "content/public/test/scoped_web_ui_controller_factory_registration.h"
#include "base/strings/strcat.h"
#include "content/public/browser/web_ui_controller_factory.h"
#include "content/public/browser/webui_config.h"
#include "content/public/browser/webui_config_map.h"
#include "content/public/common/url_constants.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace content {
namespace {
GURL GetUrlFromConfig(WebUIConfig& webui_config) { … }
void AddWebUIConfig(std::unique_ptr<WebUIConfig> webui_config) { … }
}
ScopedWebUIControllerFactoryRegistration::
ScopedWebUIControllerFactoryRegistration(
content::WebUIControllerFactory* factory,
content::WebUIControllerFactory* factory_to_replace)
: … { … }
ScopedWebUIControllerFactoryRegistration::
~ScopedWebUIControllerFactoryRegistration() { … }
ScopedWebUIConfigRegistration::ScopedWebUIConfigRegistration(
std::unique_ptr<WebUIConfig> webui_config)
: … { … }
ScopedWebUIConfigRegistration::ScopedWebUIConfigRegistration(
const GURL& webui_origin)
: … { … }
ScopedWebUIConfigRegistration::~ScopedWebUIConfigRegistration() { … }
void CheckForLeakedWebUIRegistrations::OnTestStart(
const testing::TestInfo& test_info) { … }
void CheckForLeakedWebUIRegistrations::OnTestEnd(
const testing::TestInfo& test_info) { … }
}