DescriptionAdd base::UnguessableToken << operator
base::UnguessableToken seems to fit the Google C++ style guide's
criterion on overloading << as a streaming operator. Notably:
-- It represents a value.
-- There is an easy human-readable string reprensetation of the value
(0 padded HEX).
This change adds an overload to the << operator, as syntactic sugar.
BUG=648441
TEST= Modified a UT to test the operator.
Committed: https://crrev.com/13be8a310b844140227c0c9f1f54991478bef8d2
Cr-Commit-Position: refs/heads/master@{#419647}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Moved defn to .cc file. #
Total comments: 2
Patch Set 3 : Addressed comment. #
Messages
Total messages: 14 (6 generated)
|