Add test infrastructure for tests that use logging and mocking

Change-Id: I5a38a5fd3256ca05e91d234c2bec7d18c06a75a2
10 files changed