#include "ui/views/controls/scrollbar/scroll_bar_button.h"
#include <memory>
#include "base/test/task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/display/test/test_screen.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/event.h"
#include "ui/views/repeat_controller.h"
#include "ui/views/test/view_metadata_test_utils.h"
namespace views {
namespace {
_;
AtLeast;
AtMost;
class MockButtonCallback { … };
class ScrollBarButtonTest : public testing::Test { … };
}
TEST_F(ScrollBarButtonTest, Metadata) { … }
TEST_F(ScrollBarButtonTest, FocusBehavior) { … }
TEST_F(ScrollBarButtonTest, CallbackFiresOnMouseDown) { … }
TEST_F(ScrollBarButtonTest, CallbackFiresMultipleTimesMouseHeldDown) { … }
TEST_F(ScrollBarButtonTest, CallbackStopsFiringAfterMouseReleased) { … }
TEST_F(ScrollBarButtonTest, CallbackStopsFiringAfterMouseCaptureReleased) { … }
}