Extract a test helper for reading minidump files.

BUG=
R=chrisha@chromium.org

Review URL: https://codereview.appspot.com/191170043