chromium/ui/views/controls/separator_unittest.cc

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

#include "ui/views/controls/separator.h"

#include <memory>

#include "base/memory/raw_ptr.h"
#include "ui/color/color_id.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/views/border.h"
#include "ui/views/test/views_test_base.h"

namespace views {

// Base test fixture for Separator tests.
class SeparatorTest : public ViewsTestBase {};

const SkColor SeparatorTest::kBackgroundColor =;
const ui::ColorId SeparatorTest::kForegroundColorId =;
const gfx::Size SeparatorTest::kTestImageSize{};

void SeparatorTest::SetUp() {}

void SeparatorTest::TearDown() {}

SkBitmap SeparatorTest::PaintToCanvas(float image_scale) {}

void SeparatorTest::ExpectDrawAtLeastOnePixel(float image_scale) {}

TEST_F(SeparatorTest, GetPreferredSize_VerticalOrientation) {}

TEST_F(SeparatorTest, GetPreferredSize_HorizontalOrientation) {}

TEST_F(SeparatorTest, ImageScaleBelowOne) {}

TEST_F(SeparatorTest, ImageScaleBelowOne_HorizontalLine) {}

TEST_F(SeparatorTest, Paint_NoInsets_FillsCanvas_Scale100) {}

TEST_F(SeparatorTest, Paint_NoInsets_FillsCanvas_Scale125) {}

TEST_F(SeparatorTest, Paint_NoInsets_FillsCanvas_Scale150) {}

TEST_F(SeparatorTest, Paint_TopInset_Scale100) {}

TEST_F(SeparatorTest, Paint_TopInset_Scale125) {}

TEST_F(SeparatorTest, Paint_LeftInset_Scale100) {}

TEST_F(SeparatorTest, Paint_LeftInset_Scale125) {}

TEST_F(SeparatorTest, Paint_BottomInset_Scale100) {}

TEST_F(SeparatorTest, Paint_BottomInset_Scale125) {}

TEST_F(SeparatorTest, Paint_RightInset_Scale100) {}

TEST_F(SeparatorTest, Paint_RightInset_Scale125) {}

TEST_F(SeparatorTest, Paint_Vertical_Scale100) {}

TEST_F(SeparatorTest, Paint_Vertical_Scale125) {}

TEST_F(SeparatorTest, Paint_Horizontal_Scale100) {}

TEST_F(SeparatorTest, Paint_Horizontal_Scale125) {}

// Ensure that the separator is always at least 1px, even if insets would reduce
// it to zero.
TEST_F(SeparatorTest, Paint_MinimumSize_Scale100) {}

// Ensure that the separator is always at least 1px, even if insets would reduce
// it to zero (with scale factor > 1).
TEST_F(SeparatorTest, Paint_MinimumSize_Scale125) {}

}  // namespace views