DescriptionAdd tests for gfx::ScreenRectTo/FromNSRect.
Tests are added for these coordinate conversion functions with various
simulated screen setups.
The recently moved ScopedObjCClassSwizzler in src/base/test is used so
that -[NSScreen frame] can be mocked to return a known value.
BUG=378134
TEST=gfx_unittests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289929
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : gix gn #
Messages
Total messages: 6 (0 generated)
|