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

Unified Diff: webkit/fileapi/local_file_system_test_helper.cc

Issue 11787028: New FileSystemURL cracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test on Win Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/local_file_system_test_helper.cc
diff --git a/webkit/fileapi/local_file_system_test_helper.cc b/webkit/fileapi/local_file_system_test_helper.cc
index d18249f064c897d233a5dc3b45219df665cf5871..a71a799c22711d620d04f280470b0be335369319 100644
--- a/webkit/fileapi/local_file_system_test_helper.cc
+++ b/webkit/fileapi/local_file_system_test_helper.cc
@@ -49,8 +49,8 @@ void LocalFileSystemTestOriginHelper::SetUp(
// Prepare the origin's root directory.
file_system_context_->GetMountPointProvider(type_)->
- GetFileSystemRootPathOnFileThread(
- FileSystemURL(origin_, type_, FilePath()), true /* create */);
+ GetFileSystemRootPathOnFileThread(CreateURL(FilePath()),
+ true /* create */);
// Initialize the usage cache file.
FilePath usage_cache_path = GetUsageCachePath();
@@ -77,8 +77,8 @@ void LocalFileSystemTestOriginHelper::SetUp(
// Prepare the origin's root directory.
FileSystemMountPointProvider* mount_point_provider =
file_system_context_->GetMountPointProvider(type_);
- mount_point_provider->GetFileSystemRootPathOnFileThread(
- FileSystemURL(origin_, type_, FilePath()), true /* create */);
+ mount_point_provider->GetFileSystemRootPathOnFileThread(CreateURL(FilePath()),
+ true /* create */);
// Initialize the usage cache file.
FilePath usage_cache_path = GetUsageCachePath();
@@ -93,8 +93,7 @@ void LocalFileSystemTestOriginHelper::TearDown() {
FilePath LocalFileSystemTestOriginHelper::GetOriginRootPath() const {
return file_system_context_->GetMountPointProvider(type_)->
- GetFileSystemRootPathOnFileThread(
- FileSystemURL(origin_, type_, FilePath()), false);
+ GetFileSystemRootPathOnFileThread(CreateURL(FilePath()), false);
}
FilePath LocalFileSystemTestOriginHelper::GetLocalPath(const FilePath& path) {
@@ -120,7 +119,7 @@ FilePath LocalFileSystemTestOriginHelper::GetUsageCachePath() const {
FileSystemURL LocalFileSystemTestOriginHelper::CreateURL(const FilePath& path)
const {
- return FileSystemURL(origin_, type_, path);
+ return file_system_context_->CreateCrackedFileSystemURL(origin_, type_, path);
}
base::PlatformFileError LocalFileSystemTestOriginHelper::SameFileUtilCopy(
« no previous file with comments | « webkit/fileapi/isolated_file_util_unittest.cc ('k') | webkit/fileapi/media/native_media_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698