DescriptionPretty print AlternativeService in test macros.
Implement operator<<(std::ostream&, const AlternativeService&) so that when
EXPECT_EQ or ASSERT_EQ fails between two AlternativeService structs, the test
output contains protocol names and hostnames pretty printed, instead of a binary
blob including useless things like the memory address of where std::string
stores the hostname.
Currently used in AlternateProtocolServerPropertiesTest.BrokenShadowsCanonical
only, but more tests involving EXPECT_EQ between AlternativeService structs are
coming.
BUG=392575
Committed: https://crrev.com/a3542c2eb9d3760800d718c51eb9f573a42c6b42
Cr-Commit-Position: refs/heads/master@{#336551}
Patch Set 1 #
Messages
Total messages: 13 (4 generated)
|