chromeos-dbus-bindings: Print output diff when failing a test.

To help test-driven-development techniques and prevent lazy developers
from copy-pasting the output of the test into the expected results
without inspecting them, this patch shows the unified diff between
the expected result and the generated file.

It is still possible to update the unittest code by appliying the
patch to the *_unittest.cc file.

BUG=None
TEST=Modified an expected result and saw the diff on the unittest.

Change-Id: If24479fed1fa3be67f2a99c092206bf27cf2b110
Reviewed-on: https://chromium-review.googlesource.com/289300
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
6 files changed
tree: d78ac655859eee134d5d5cb9393b05873d7601a5
  1. chromeos-dbus-bindings/