diff options
author | Sen Jiang <senj@google.com> | 2018-07-02 17:34:56 -0700 |
---|---|---|
committer | Sen Jiang <senj@google.com> | 2018-07-03 18:24:09 -0700 |
commit | 0779a151e585ac465de4ea03e710b24f60037724 (patch) | |
tree | 8aee0e5625b8316a95628831f535d272b3f50fee /common/error_code_utils.cc | |
parent | 0a582fbf50cd420198d29ee64505dd6785a68184 (diff) |
Use ScopedTempFile in unit test.
Replace these 3 lines of code:
string path;
ASSERT_TRUE(utils::MakeTempFile("name-XXXXXX", &path, nullptr));
ScopedPathUnlinker path_unlinker(path);
with one liner:
test_utils::ScopedTempFile file("name-XXXXXX");
Bug: None
Test: unit test
Change-Id: Ic5be7dc8339842270023055bcc3a97e526953f04
Diffstat (limited to 'common/error_code_utils.cc')
0 files changed, 0 insertions, 0 deletions