#include "chrome/browser/ui/views/frame/browser_frame_view_layout_linux_native.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "ui/base/models/image_model.h"
#include "ui/linux/nav_button_provider.h"
#include "ui/linux/window_frame_provider.h"
#include "ui/views/background.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/test/views_test_utils.h"
namespace {
constexpr int kWindowWidth = …;
constexpr gfx::Size kCloseButtonSize = …;
constexpr gfx::Size kMaximizeButtonSize = …;
constexpr gfx::Size kMinimizeButtonSize = …;
constexpr gfx::Insets kCloseButtonMargin = …;
constexpr gfx::Insets kMaximizeButtonMargin = …;
constexpr gfx::Insets kMinimizeButtonMargin = …;
constexpr gfx::Insets kTopAreaSpacing = …;
constexpr int kInterNavButtonSpacing = …;
static gfx::ImageSkia GetTestImageForSize(gfx::Size size) { … }
class TestLayoutDelegate : public OpaqueBrowserFrameViewLayoutDelegate { … };
class TestNavButtonProvider : public ui::NavButtonProvider { … };
class TestFrameProvider : public ui::WindowFrameProvider { … };
}
class BrowserFrameViewLayoutLinuxNativeTest : public ChromeViewsTestBase { … };
TEST_F(BrowserFrameViewLayoutLinuxNativeTest, NativeNavButtons) { … }