Implement ITextRangeProvider::Move
This change implements Implement ITextRangeProvider::Move. This implementation uses MoveEndpointByUnit to do most of the functionality, with some edge cases handled. Unit tests were added for all unit types except Format and Paragraph. Unit tests for these will be added once MoveEndpointByUnit is completed for each type. AssertMoveEndpointByUnit() and AssertMove() helper functions were added to the unit tests to decrease the amount of repeated code and to increase readability. Bug: 928948 Change-Id: I22dfa7017d162b83fdc6db66dbcfd5266d98bfcf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1569522Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#652854}
Showing
This diff is collapsed.
Please register or sign in to comment