chromium/content/browser/webui/webui_config_map_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =;

// A valid BrowserContext is not needed for these tests.
BrowserContext* kBrowserContext =;

class TestConfig : public WebUIConfig {};

}  // namespace

TEST(WebUIConfigTest, AddAndRemoveChromeUrl) {}

TEST(WebUIConfigTest, AddAndRemoteChromeUntrustedUrl) {}

class WebUiConfigDeathTest : public testing::Test,
                             public ::testing::WithParamInterface<const char*> {};

// Regression test for https://crbug.com/1464456.
TEST_P(WebUiConfigDeathTest, GetAndRemoveNonChromeUrls) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace content