#include "chrome/browser/ui/views/bubble/webui_bubble_manager.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/views/bubble/webui_bubble_dialog_view.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/webui/top_chrome/top_chrome_web_ui_controller.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
namespace {
void DestroySpareRenderProcess() { … }
void DestroyBubble(WebUIBubbleManager* bubble_manager, Profile* profile) { … }
}
class TestWebUIController : public TopChromeWebUIController { … };
WEB_UI_CONTROLLER_TYPE_IMPL(TestWebUIController)
template <>
class WebUIContentsWrapperT<TestWebUIController> final
: public WebUIContentsWrapper { … };
class WebUIBubbleManagerBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(WebUIBubbleManagerBrowserTest, CreateAndCloseBubble) { … }
IN_PROC_BROWSER_TEST_F(WebUIBubbleManagerBrowserTest,
ShowUISetsBubbleWidgetVisible) { … }
IN_PROC_BROWSER_TEST_F(WebUIBubbleManagerBrowserTest,
ManagerDestructionClosesBubble) { … }
IN_PROC_BROWSER_TEST_F(WebUIBubbleManagerBrowserTest, DISABLED_WarmupLevel) { … }