Add unit tests for KURL::Port()
Test the various ways of setting or changing the port on a blink::KURL and verify that KURL::Port() returns the correct answers in each case. The results are different depending on how the port was set: the constructors are strict about disallowing invalid ports. SetPort() converts any input to a valid port. SetHostAndPort() is somewhere inbetween. Bug: 606462 Change-Id: I1533d47aa113d2bb4482cdfe17e682a5da56649a Reviewed-on: https://chromium-review.googlesource.com/1114572Reviewed-by:Tom Sepez <tsepez@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#570620}
Showing
Please register or sign in to comment