simpleperf: move test helpers to test_util.cpp

A few helper functions used in cmd_record_test.cpp may be useful for
future tests. Move these to a new test_util.cpp

Test: mm
Change-Id: I027cc87923117ddb1a94aa7bf9484ba01ece3536
3 files changed