diff options
Diffstat (limited to 'webkit/fileapi/syncable/syncable_file_system_unittest.cc')
-rw-r--r-- | webkit/fileapi/syncable/syncable_file_system_unittest.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/fileapi/syncable/syncable_file_system_unittest.cc b/webkit/fileapi/syncable/syncable_file_system_unittest.cc index c3c621e..a739277 100644 --- a/webkit/fileapi/syncable/syncable_file_system_unittest.cc +++ b/webkit/fileapi/syncable/syncable_file_system_unittest.cc @@ -126,6 +126,8 @@ TEST_F(SyncableFileSystemTest, SyncableLocalSandboxCombined) { EXPECT_EQ(base::PLATFORM_FILE_OK, file_system_.CreateFile(URL("dir/foo"))); + const int64 kOriginalQuota = QuotaManager::kSyncableStorageDefaultHostQuota; + const int64 kQuota = 12345 * 1024; QuotaManager::kSyncableStorageDefaultHostQuota = kQuota; int64 usage, quota; @@ -165,6 +167,9 @@ TEST_F(SyncableFileSystemTest, SyncableLocalSandboxCombined) { // Now the usage must be zero. GetUsageAndQuota(&usage, NULL); EXPECT_EQ(0, usage); + + // Restore the system default quota. + QuotaManager::kSyncableStorageDefaultHostQuota = kOriginalQuota; } // Combined testing with LocalFileChangeTracker. |