chromium/ui/views/widget/native_widget_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/memory/raw_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/views/controls/native/native_view_host.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/view.h"
#include "ui/views/widget/native_widget_private.h"
#include "ui/views/widget/widget.h"

namespace views {

class ScopedTestWidget {};

class NativeWidgetTest : public ViewsTestBase {};

TEST_F(NativeWidgetTest, CreateNativeWidget) {}

TEST_F(NativeWidgetTest, GetNativeWidgetForNativeView) {}

// |widget| has the toplevel NativeWidget.
TEST_F(NativeWidgetTest, GetTopLevelNativeWidget1) {}

// |toplevel_widget| has the toplevel NativeWidget.
TEST_F(NativeWidgetTest, GetTopLevelNativeWidget2) {}

// GetTopLevelNativeWidget() finds the closest top-level widget.
TEST_F(NativeWidgetTest, GetTopLevelNativeWidget3) {}

}  // namespace views