summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYabin Cui2017-12-06 16:20:07 -0600
committerYabin Cui2017-12-06 16:20:07 -0600
commit464ea6114353a18b4cb5fc2c70f8553f5ba9dc2e (patch)
tree8fd13062f2b2f820e4754c7756e8afa44a461704 /base/include/android-base/test_utils.h
parent3946d93023264cc24e706231ef786d9fa820cb4f (diff)
downloadplatform-system-core-464ea6114353a18b4cb5fc2c70f8553f5ba9dc2e.tar.gz
platform-system-core-464ea6114353a18b4cb5fc2c70f8553f5ba9dc2e.tar.xz
platform-system-core-464ea6114353a18b4cb5fc2c70f8553f5ba9dc2e.zip
base: allow creating tempfile in a custom temporary dir.
Bug: http://b/70232908 Test: none. Change-Id: I24b894793f6725186b3582a91db083427e51aa5a
Diffstat (limited to 'base/include/android-base/test_utils.h')
-rw-r--r--base/include/android-base/test_utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/include/android-base/test_utils.h b/base/include/android-base/test_utils.h
index 07a5edda0..4cfa06ba5 100644
--- a/base/include/android-base/test_utils.h
+++ b/base/include/android-base/test_utils.h
@@ -24,6 +24,7 @@
24class TemporaryFile { 24class TemporaryFile {
25 public: 25 public:
26 TemporaryFile(); 26 TemporaryFile();
27 explicit TemporaryFile(const std::string& tmp_dir);
27 ~TemporaryFile(); 28 ~TemporaryFile();
28 29
29 // Release the ownership of fd, caller is reponsible for closing the 30 // Release the ownership of fd, caller is reponsible for closing the