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.

TEST=verity unit tests pass with/without libc++.

Change-Id: Ia854f11287fdf3789844540da49ea6eb969a7b40
Commit-Ready: Manoj Gupta <>
Tested-by: Manoj Gupta <>
Reviewed-by: Mike Frysinger <>
1 file changed