#include "chrome/browser/ui/views/bubble/webui_bubble_dialog_view.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/webui/top_chrome/webui_contents_wrapper.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/hit_test.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/widget/unique_widget_ptr.h"
namespace {
class TestWebUIContentsWrapper : public WebUIContentsWrapper { … };
}
namespace views {
namespace test {
class WebUIBubbleDialogViewTest : public ChromeViewsTestBase,
public testing::WithParamInterface<bool> { … };
TEST_P(WebUIBubbleDialogViewTest, BubbleRespondsToWebViewPreferredSizeChanges) { … }
TEST_P(WebUIBubbleDialogViewTest, ClearContentsWrapper) { … }
TEST_P(WebUIBubbleDialogViewTest, CloseUIClearsContentsWrapper) { … }
TEST_P(WebUIBubbleDialogViewTest, GetAnchorRectWithProvidedAnchorRect) { … }
TEST_P(WebUIBubbleDialogViewTest, DestroyingContentsWrapperDoesNotSegfault) { … }
TEST_P(WebUIBubbleDialogViewTest, DraggableRegionIsReflectedInHitTest) { … }
TEST_P(WebUIBubbleDialogViewTest, DraggableBubbleRetainsBoundsWhenVisible) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}