split view: Clean up overly complicated unit test
SplitViewOverviewSessionInClamshellTestMultiDisplayOnly.GetSnappedBounds is overly complicated, because as you can tell by reading the code comment, I thought that it is advantageous to use EXPECT_EQ with string representations of rects so that such string representations will be included in the output of failures. Actually, you can just pass the rects themselves to EXPECT_EQ, and the nice string representations will still show up in failure output. The code can be much nicer that way! Bug: 970013 Change-Id: I1832f1e877b9580ce2aae9181c6770af2186e221 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1888532 Commit-Queue: Avery Musbach <amusbach@chromium.org> Reviewed-by:Sammie Quon <sammiequon@chromium.org> Cr-Commit-Position: refs/heads/master@{#710809}
Showing
Please register or sign in to comment