chromium/third_party/blink/renderer/core/scroll/scrollbar_theme_aura_test.cc

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

#include "third_party/blink/renderer/core/scroll/scrollbar_theme_aura.h"

#include "third_party/blink/public/common/input/web_mouse_event.h"
#include "third_party/blink/renderer/core/scroll/scrollbar_test_suite.h"
#include "third_party/blink/renderer/platform/heap/thread_state.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support_with_mock_scheduler.h"

namespace blink {

Return;

namespace {

class ScrollbarThemeAuraButtonOverride final : public ScrollbarThemeAura {};

}  // namespace

class ScrollbarThemeAuraTest : public ::testing::TestWithParam<float> {};

// Note that this helper only sends mouse events that are already handled on the
// compositor thread, to the scrollbar (i.e they will have the event modifier
// "kScrollbarManipulationHandledOnCompositorThread" set). The point of this
// exercise is to validate that the scrollbar parts invalidate as expected
// (since we still rely on the main thread for invalidation).
void SendEvent(Scrollbar* scrollbar,
               blink::WebInputEvent::Type type,
               gfx::PointF point) {}

TEST_P(ScrollbarThemeAuraTest, ButtonSizeHorizontal) {}

TEST_P(ScrollbarThemeAuraTest, ButtonSizeVertical) {}

TEST_P(ScrollbarThemeAuraTest, NoButtonsReturnsSize0) {}

TEST_P(ScrollbarThemeAuraTest, ScrollbarPartsInvalidationTest) {}

// Verify that the NinePatchCanvas function returns the correct minimal image
// size when the scrollbars are larger and smaller than the minimal size (enough
// space for two buttons and a pixel in the middle).
TEST_P(ScrollbarThemeAuraTest, NinePatchCanvas) {}

// Verify that the NinePatchAperture function returns the correct point in the
// middle of the canvas taking into consideration when the scrollbars' width is
// even to expand the width of the center-patch.
TEST_P(ScrollbarThemeAuraTest, NinePatchAperture) {}

// Verifies that resizing the scrollbar doesn't generate unnecessary paint
// invalidations when the scrollbar uses nine-patch track and buttons
// resources.
TEST_P(ScrollbarThemeAuraTest, TestPaintInvalidationsWhenNinePatchScaled) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace blink