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 |