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

Unified Diff: mount_task_unittest.cc

Issue 6598074: DoAutomaticFreeDiskSpaceControl() introduced (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cryptohome.git@master
Patch Set: Created 9 years, 10 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 | « mount_task.cc ('k') | mount_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mount_task_unittest.cc
diff --git a/mount_task_unittest.cc b/mount_task_unittest.cc
index 2fa11cd7ce19f151fd085c2979dab7c05e6b24e9..9b4dea51b57bac0a1054cb88c7c5153f88f502a4 100644
--- a/mount_task_unittest.cc
+++ b/mount_task_unittest.cc
@@ -236,4 +236,14 @@ TEST_F(MountTaskTest, RemoveTrackedSubdirectories) {
ASSERT_TRUE(event_.IsSignaled());
}
+TEST_F(MountTaskTest, AutomaticFreeDiskSpace) {
+ ASSERT_FALSE(event_.IsSignaled());
+ MountTask* mount_task = new MountTaskAutomaticFreeDiskSpace(NULL, &mount_);
+ mount_task->set_complete_event(&event_);
+ mount_task->set_result(&result_);
+ runner_.message_loop()->PostTask(FROM_HERE, mount_task);
+ event_.TimedWait(wait_time_);
+ ASSERT_TRUE(event_.IsSignaled());
+}
+
} // namespace cryptohome
« no previous file with comments | « mount_task.cc ('k') | mount_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698