Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: base/file_util_proxy_unittest.cc

Issue 10446109: Fixed file leak in test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_proxy_unittest.cc
diff --git a/base/file_util_proxy_unittest.cc b/base/file_util_proxy_unittest.cc
index 402385a82e7843221ecb123cefc61e30ab94040c..42856c470314c8ed5bb8ddbddfff637631d0c376 100644
--- a/base/file_util_proxy_unittest.cc
+++ b/base/file_util_proxy_unittest.cc
@@ -216,6 +216,9 @@ TEST_F(FileUtilProxyTest, CreateTemporary) {
std::string data;
EXPECT_TRUE(file_util::ReadFileToString(path_, &data));
EXPECT_EQ("test", data);
+
+ // Make sure we can & do delete the created file to prevent leaks on the bots.
+ EXPECT_TRUE(file_util::Delete(path_, false));
}
TEST_F(FileUtilProxyTest, GetFileInfo_File) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698