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

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

Issue 10407115: Always pass FileSystemContext to ObfuscatedFileUtil operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 7 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 NULL, origin_url, type); 297 file_system_context_, 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(origin_url, type); 308 sandbox_provider()->GetOriginUsageOnFileThread(
309 file_system_context_, origin_url, type);
309 break; 310 break;
310 case 7: 311 case 7:
311 // This case has to use an origin that already exists in the 312 // This case has to use an origin that already exists in the
312 // migrated data. 313 // migrated data.
313 sandbox_provider()->UpdateOriginUsageOnFileThread( 314 sandbox_provider()->UpdateOriginUsageOnFileThread(
314 NULL, kMigrationTestRecords[0].origin, 315 NULL, kMigrationTestRecords[0].origin,
315 kFileSystemTypeTemporary, delta); 316 kFileSystemTypeTemporary, delta);
316 break; 317 break;
317 case 8: 318 case 8:
318 // This case has to use a filesystem that already exists in the 319 // This case has to use a filesystem that already exists in the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 382
382 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { 383 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) {
383 RunMigrationTest(8); 384 RunMigrationTest(8);
384 } 385 }
385 386
386 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { 387 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) {
387 RunMigrationTest(9); 388 RunMigrationTest(9);
388 } 389 }
389 390
390 } // namespace fileapi 391 } // 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