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

// Copyright 2019 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_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

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();

}  // namespace test
}  // namespace views