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

Unified Diff: webkit/fileapi/isolated_context_unittest.cc

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout test crash fix Created 8 years, 5 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
« no previous file with comments | « webkit/fileapi/isolated_context.cc ('k') | webkit/fileapi/isolated_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_context_unittest.cc
diff --git a/webkit/fileapi/isolated_context_unittest.cc b/webkit/fileapi/isolated_context_unittest.cc
index 92c5b56320e27c43a01915f1688c361959eb1b07..c1319919d92f6acaa1956d69a375e9a000851f72 100644
--- a/webkit/fileapi/isolated_context_unittest.cc
+++ b/webkit/fileapi/isolated_context_unittest.cc
@@ -94,15 +94,14 @@ TEST_F(IsolatedContextTest, RegisterAndRevokeTest) {
FilePath virtual_path = isolated_context()->CreateVirtualRootPath(id_)
.AppendASCII(names_[i]);
std::string cracked_id;
- FileInfo root_info;
FilePath cracked_path;
+ FileSystemType cracked_type;
ASSERT_TRUE(isolated_context()->CrackIsolatedPath(
- virtual_path, &cracked_id, &root_info, &cracked_path));
+ virtual_path, &cracked_id, &cracked_type, &cracked_path));
ASSERT_EQ(kTestPaths[i].NormalizePathSeparators().value(),
cracked_path.value());
- ASSERT_TRUE(fileset_.find(root_info.path.NormalizePathSeparators())
- != fileset_.end());
ASSERT_EQ(id_, cracked_id);
+ ASSERT_EQ(kFileSystemTypeDragged, cracked_type);
}
// Make sure GetRegisteredPath returns false for id_ since it is
@@ -152,21 +151,20 @@ TEST_F(IsolatedContextTest, CrackWithRelativePaths) {
FilePath virtual_path = isolated_context()->CreateVirtualRootPath(id_)
.AppendASCII(names_[i]).Append(relatives[j].path);
std::string cracked_id;
- FileInfo root_info;
FilePath cracked_path;
+ FileSystemType cracked_type;
if (!relatives[j].valid) {
ASSERT_FALSE(isolated_context()->CrackIsolatedPath(
- virtual_path, &cracked_id, &root_info, &cracked_path));
+ virtual_path, &cracked_id, &cracked_type, &cracked_path));
continue;
}
ASSERT_TRUE(isolated_context()->CrackIsolatedPath(
- virtual_path, &cracked_id, &root_info, &cracked_path));
- ASSERT_TRUE(fileset_.find(root_info.path.NormalizePathSeparators())
- != fileset_.end());
+ virtual_path, &cracked_id, &cracked_type, &cracked_path));
ASSERT_EQ(kTestPaths[i].Append(relatives[j].path)
.NormalizePathSeparators().value(),
cracked_path.value());
ASSERT_EQ(id_, cracked_id);
+ ASSERT_EQ(kFileSystemTypeDragged, cracked_type);
}
}
}
« no previous file with comments | « webkit/fileapi/isolated_context.cc ('k') | webkit/fileapi/isolated_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698