diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 10:32:25 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 10:32:25 +0000 |
commit | e4486338b71884677a6b59e91aff0aeff769d092 (patch) | |
tree | da735603c217ba8110a5d4645b6310fe048dcea3 /webkit/fileapi/syncable/syncable_file_system_unittest.cc | |
parent | 9f75cf41c142783ba92018b0144b8bae8c6a545b (diff) | |
download | chromium_src-e4486338b71884677a6b59e91aff0aeff769d092.zip chromium_src-e4486338b71884677a6b59e91aff0aeff769d092.tar.gz chromium_src-e4486338b71884677a6b59e91aff0aeff769d092.tar.bz2 |
Restore quota manager's default quota value
BUG=none
TEST=green bots
Review URL: https://codereview.chromium.org/11112012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161550 0039d316-1c4b-4281-b951-d872f2087c98
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. |