verity: Fix unit test issue with libc++

class Message in logging inherits from ostream which libc++
dislikes since ostream class has a private constructor. Inspection
showed no reason to inherit ostream. Message class only needs
to overload the "<<" operator for logging. So move the already
defined "<<" operator function inside the class.
Remove stream() function and update the macros.

BUG=chromium:724628
TEST=verity unit tests pass with/without libc++.

Change-Id: Ia854f11287fdf3789844540da49ea6eb969a7b40
Reviewed-on: https://chromium-review.googlesource.com/614871
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed