chromium/chrome/browser/ui/webui/top_chrome/top_chrome_webui_config_unittest.cc

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

#include "chrome/browser/ui/webui/top_chrome/top_chrome_webui_config.h"

#include "chrome/browser/ui/webui/top_chrome/top_chrome_web_ui_controller.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/webui_config.h"
#include "content/public/browser/webui_config_map.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/scoped_web_ui_controller_factory_registration.h"
#include "content/public/test/test_web_ui.h"

namespace content {
class BrowserContext;
class WebUI;
}  // namespace content

namespace {

TopChromeWebUIConfigTest;

const char kTestWebUIHost[] =;
const char kTestWebUIURL[] =;

class TestWebUIController : public content::WebUIController {};

class TestWebUIConfig
    : public content::DefaultWebUIConfig<TestWebUIController> {};

const char kTestTopChromeWebUIHost[] =;
const char kTestTopChromeWebUIURL[] =;

class TestTopChromeWebUIController : public TopChromeWebUIController {};

class TestTopChromeWebUIConfig
    : public DefaultTopChromeWebUIConfig<TestTopChromeWebUIController> {};

}  // namespace

// Tests that TopChromeWebUIConfig cannot be retrieved for a regular WebUI.
TEST_F(TopChromeWebUIConfigTest, RegularWebUI) {}

// Tests that TopChromeWebUIConfig can be retrieved for a top-chrome WebUI.
TEST_F(TopChromeWebUIConfigTest, TopChromeWebUI) {}

// Tests that DefaultTopChromeWebUIConfig can create WebUIController.
TEST_F(TopChromeWebUIConfigTest, DefaultTopChromeWebUIConfig) {}