Pull PRESUBMIT test mocks out of //PRESUBMIT_test.py.

This CL pulls the mocks defined in //PRESUBMIT_test.py into a
standalone file so that they can be reused.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/796103002