| commit | 0779a151e585ac465de4ea03e710b24f60037724 | [log] [tgz] |
|---|---|---|
| author | Sen Jiang <senj@google.com> | Mon Jul 02 17:34:56 2018 -0700 |
| committer | Sen Jiang <senj@google.com> | Tue Jul 03 18:24:09 2018 -0700 |
| tree | 8aee0e5625b8316a95628831f535d272b3f50fee | |
| 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