Fix warnings and turn on -Werror for C++ tests.

Change-Id: Ia11406100c32e438eb103585a16e51a54365b5d7
10 files changed