#include "ui/views/window/custom_frame_view.h"
#include <utility>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/test/views_test_utils.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/window/window_button_order_provider.h"
namespace views {
class CustomFrameViewTest : public ViewsTestBase { … };
void CustomFrameViewTest::SetUp() { … }
void CustomFrameViewTest::TearDown() { … }
void CustomFrameViewTest::SetWindowButtonOrder(
const std::vector<views::FrameButton> leading_buttons,
const std::vector<views::FrameButton> trailing_buttons) { … }
TEST_F(CustomFrameViewTest, DefaultButtons) { … }
TEST_F(CustomFrameViewTest, DefaultButtonLayout) { … }
TEST_F(CustomFrameViewTest, LeadingButtonLayout) { … }
TEST_F(CustomFrameViewTest, MaximizeRevealsRestoreButton) { … }
TEST_F(CustomFrameViewTest, CannotMaximizeHidesButton) { … }
TEST_F(CustomFrameViewTest, CannotMinimizeHidesButton) { … }
TEST_F(CustomFrameViewTest, LargerEdgeButtonsWhenMaximized) { … }
}