Merge "Refactor test code to prepare for multi process tests" am: 21e46fc857

Original change: https://android-review.googlesource.com/c/platform/test/mlts/benchmark/+/1305602

Change-Id: I3230c510bcf130dbabcb44901e61eb9b2daeab6d