#include "ui/views/widget/unique_widget_ptr.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/view.h"
#include "ui/views/view_observer.h"
#include "ui/views/widget/widget.h"
namespace views {
class UniqueWidgetPtrTest
: public ViewsTestBase,
public ::testing::WithParamInterface<Widget::InitParams::Ownership>,
public ViewObserver { … };
TEST_P(UniqueWidgetPtrTest, TestCloseContent) { … }
TEST_P(UniqueWidgetPtrTest, TestScopeDestruct) { … }
TEST_P(UniqueWidgetPtrTest, TestMoveAssign) { … }
TEST_P(UniqueWidgetPtrTest, TestMoveConstruct) { … }
TEST_P(UniqueWidgetPtrTest, TestCloseWidget) { … }
TEST_P(UniqueWidgetPtrTest, TestCloseNativeWidget) { … }
INSTANTIATE_TEST_SUITE_P(…);
}