#include "ui/views/selection_controller.h"
#include <memory>
#include <string>
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event.h"
#include "ui/events/event_constants.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/render_text.h"
#include "ui/views/metrics.h"
#include "ui/views/selection_controller_delegate.h"
#include "ui/views/style/platform_style.h"
namespace views {
namespace {
const gfx::Point CenterLeft(const gfx::Rect& rect) { … }
const gfx::Point CenterRight(const gfx::Rect& rect) { … }
class TestSelectionControllerDelegate : public SelectionControllerDelegate { … };
class SelectionControllerTest : public ::testing::Test { … };
TEST_F(SelectionControllerTest, ClickAndDragToSelect) { … }
TEST_F(SelectionControllerTest, RightClickWhenUnfocused) { … }
TEST_F(SelectionControllerTest, RightClickSelectsWord) { … }
TEST_F(SelectionControllerTest, RightClickPastEndDoesntSelectLastWord) { … }
TEST_F(SelectionControllerTest, DragPastEndUsesProperOrigin) { … }
}
}