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

Side by Side Diff: webkit/fileapi/sandbox_mount_point_provider_unittest.cc

Issue 10449028: Revert 138444 - Always pass FileSystemContext to ObfuscatedFileUtil operations (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1151/src/
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/fileapi/sandbox_mount_point_provider.h" 5 #include "webkit/fileapi/sandbox_mount_point_provider.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 case 1: 287 case 1:
288 sandbox_provider()->GetFileSystemRootPathOnFileThread( 288 sandbox_provider()->GetFileSystemRootPathOnFileThread(
289 origin_url, type, FilePath(), create); 289 origin_url, type, FilePath(), create);
290 break; 290 break;
291 case 2: 291 case 2:
292 sandbox_provider()->GetBaseDirectoryForOriginAndType( 292 sandbox_provider()->GetBaseDirectoryForOriginAndType(
293 origin_url, type, create); 293 origin_url, type, create);
294 break; 294 break;
295 case 3: 295 case 3:
296 sandbox_provider()->DeleteOriginDataOnFileThread( 296 sandbox_provider()->DeleteOriginDataOnFileThread(
297 file_system_context_, NULL, origin_url, type); 297 NULL, origin_url, type);
298 break; 298 break;
299 case 4: 299 case 4:
300 sandbox_provider()->GetOriginsForTypeOnFileThread( 300 sandbox_provider()->GetOriginsForTypeOnFileThread(
301 type, &origins); 301 type, &origins);
302 break; 302 break;
303 case 5: 303 case 5:
304 sandbox_provider()->GetOriginsForHostOnFileThread( 304 sandbox_provider()->GetOriginsForHostOnFileThread(
305 type, host, &origins); 305 type, host, &origins);
306 break; 306 break;
307 case 6: 307 case 6:
308 sandbox_provider()->GetOriginUsageOnFileThread( 308 sandbox_provider()->GetOriginUsageOnFileThread(origin_url, type);
309 file_system_context_, origin_url, type);
310 break; 309 break;
311 case 7: 310 case 7:
312 // This case has to use an origin that already exists in the 311 // This case has to use an origin that already exists in the
313 // migrated data. 312 // migrated data.
314 sandbox_provider()->UpdateOriginUsageOnFileThread( 313 sandbox_provider()->UpdateOriginUsageOnFileThread(
315 NULL, kMigrationTestRecords[0].origin, 314 NULL, kMigrationTestRecords[0].origin,
316 kFileSystemTypeTemporary, delta); 315 kFileSystemTypeTemporary, delta);
317 break; 316 break;
318 case 8: 317 case 8:
319 // This case has to use a filesystem that already exists in the 318 // This case has to use a filesystem that already exists in the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 381
383 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { 382 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) {
384 RunMigrationTest(8); 383 RunMigrationTest(8);
385 } 384 }
386 385
387 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { 386 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) {
388 RunMigrationTest(9); 387 RunMigrationTest(9);
389 } 388 }
390 389
391 } // namespace fileapi 390 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/sandbox_mount_point_provider.cc ('k') | webkit/fileapi/test_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698