Add 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.

Review-Url: https://codereview.chromium.org/2353663003
Cr-Commit-Position: refs/heads/master@{#419647}


CrOS-Libchrome-Original-Commit: 13be8a310b844140227c0c9f1f54991478bef8d2
3 files changed
tree: a395982505062570a1b40d190c7fafaf4075bf6d
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/