#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 = …;
}
class Profile;
class TestWebUIController : public TopChromeWebUIController { … };
WEB_UI_CONTROLLER_TYPE_IMPL(TestWebUIController)
template <>
class WebUIContentsWrapperT<TestWebUIController> : public WebUIContentsWrapper { … };
class WebUIBubbleManagerTest : public ChromeViewsTestBase { … };
class WebUIBubbleManagerPersistentRendererTest : public WebUIBubbleManagerTest { … };
TEST_F(WebUIBubbleManagerPersistentRendererTest,
UsesPersistentContentsWrapperPerProfile) { … }
TEST_F(WebUIBubbleManagerPersistentRendererTest,
PerProfileContentsWrapperNotUsedForOffTheRecordProfile) { … }
TEST_F(WebUIBubbleManagerTest, CreateWebUIBubbleDialogWithAnchorProvided) { … }
#if !BUILDFLAG(IS_CHROMEOS_ASH)
TEST_F(WebUIBubbleManagerPersistentRendererTest,
UsesPersistentContentsWrapperPerProfileMultiProfile) { … }
#endif