diff options
author | 2021-08-23 10:48:17 +0000 | |
---|---|---|
committer | 2021-08-23 12:26:31 +0000 | |
commit | b89649bd95cffec48f6f6746054553f71ab3e807 (patch) | |
tree | faaff2611b018e4864b29d1f5df47b2d0187b8d2 /runtime/exec_utils.h | |
parent | 054c8008272861c4c2a845424a3be6705f884d93 (diff) |
Revert "Add unit tests for odrefresh - step 2"
This reverts commit b91dad2b98e8c562aed7c4471615d7c325756c08.
Reason for revert: breaks builds on fugu.
Bug: 196188549
Change-Id: Iec08674c2ed53b8e6048c044d5e72fdd26518a83
Diffstat (limited to 'runtime/exec_utils.h')
-rw-r--r-- | runtime/exec_utils.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/runtime/exec_utils.h b/runtime/exec_utils.h index e011c822ba..5e22639a08 100644 --- a/runtime/exec_utils.h +++ b/runtime/exec_utils.h @@ -37,28 +37,6 @@ int ExecAndReturnCode(std::vector<std::string>& arg_vector, /*out*/ bool* timed_out, /*out*/ std::string* error_msg); -// A wrapper class to make the functions above mockable. -class ExecUtils { - public: - virtual ~ExecUtils() = default; - - virtual bool Exec(std::vector<std::string>& arg_vector, /*out*/ std::string* error_msg) const { - return art::Exec(arg_vector, error_msg); - } - - virtual int ExecAndReturnCode(std::vector<std::string>& arg_vector, - /*out*/ std::string* error_msg) const { - return art::ExecAndReturnCode(arg_vector, error_msg); - } - - virtual int ExecAndReturnCode(std::vector<std::string>& arg_vector, - time_t timeout_secs, - /*out*/ bool* timed_out, - /*out*/ std::string* error_msg) const { - return art::ExecAndReturnCode(arg_vector, timeout_secs, timed_out, error_msg); - } -}; - } // namespace art #endif // ART_RUNTIME_EXEC_UTILS_H_ |