summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'base/test_utils.cpp')
-rw-r--r--base/test_utils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/test_utils.cpp b/base/test_utils.cpp
index 1cfa9e66f..9d8dfb2fd 100644
--- a/base/test_utils.cpp
+++ b/base/test_utils.cpp
@@ -84,6 +84,10 @@ TemporaryFile::TemporaryFile() {
84 init(GetSystemTempDir()); 84 init(GetSystemTempDir());
85} 85}
86 86
87TemporaryFile::TemporaryFile(const std::string& tmp_dir) {
88 init(tmp_dir);
89}
90
87TemporaryFile::~TemporaryFile() { 91TemporaryFile::~TemporaryFile() {
88 if (fd != -1) { 92 if (fd != -1) {
89 close(fd); 93 close(fd);