chromium/chrome/browser/ui/views/bubble/webui_bubble_manager_unittest.cc

// Copyright 2021 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/views/bubble/webui_bubble_manager.h"

#include "base/feature_list.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/bubble/webui_bubble_dialog_view.h"
#include "chrome/browser/ui/webui/top_chrome/top_chrome_web_ui_controller.h"
#include "chrome/browser/ui/webui/top_chrome/webui_contents_wrapper.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/views/test/widget_test.h"

namespace {

const char* kTestURL =;

}  // namespace

class Profile;

class TestWebUIController : public TopChromeWebUIController {};
WEB_UI_CONTROLLER_TYPE_IMPL(TestWebUIController)

template <>
class WebUIContentsWrapperT<TestWebUIController> : public WebUIContentsWrapper {};

class WebUIBubbleManagerTest : public ChromeViewsTestBase {};

// Fixture for testing the persistent renderer functionality.
class WebUIBubbleManagerPersistentRendererTest : public WebUIBubbleManagerTest {};

TEST_F(WebUIBubbleManagerPersistentRendererTest,
       UsesPersistentContentsWrapperPerProfile) {}

TEST_F(WebUIBubbleManagerPersistentRendererTest,
       PerProfileContentsWrapperNotUsedForOffTheRecordProfile) {}

TEST_F(WebUIBubbleManagerTest, CreateWebUIBubbleDialogWithAnchorProvided) {}

#if !BUILDFLAG(IS_CHROMEOS_ASH)  // No multi-profile on ChromeOS.

TEST_F(WebUIBubbleManagerPersistentRendererTest,
       UsesPersistentContentsWrapperPerProfileMultiProfile) {}

#endif  // !BUILDFLAG(IS_CHROMEOS_ASH)