Mock CheckCompilationSpace in unit test.

Before this change, the real check was performed, so the test would fail
if the space is low, making the test flaky. This CL fixes this issue by
replacing the check with a fake one in the test.

Bug: 278120080
Test: atest art_standalone_odrefresh_tests
Change-Id: Ifc875a41c1310527703fa8e4005d41fced2a2575
3 files changed