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

Unified Diff: webkit/fileapi/file_system_quota_unittest.cc

Issue 9370045: Fixed bug: we can now handle "a:b" as a file name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 years, 10 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/file_system_operation_unittest.cc ('k') | webkit/fileapi/file_system_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_quota_unittest.cc
diff --git a/webkit/fileapi/file_system_quota_unittest.cc b/webkit/fileapi/file_system_quota_unittest.cc
index bdc281a7bdf61cfbc9adbd00290ecfd25b816670..3be48e632be165e79470d91c9f3d03a34887bd9d 100644
--- a/webkit/fileapi/file_system_quota_unittest.cc
+++ b/webkit/fileapi/file_system_quota_unittest.cc
@@ -230,10 +230,10 @@ TEST_F(FileSystemQuotaTest, TestMoveSuccessSrcDirRecursive) {
EXPECT_EQ(base::PLATFORM_FILE_OK, status());
EXPECT_TRUE(VirtualDirectoryExists(dest_dir_path.Append(
- child_dir_path_.BaseName())));
+ VirtualPath::BaseName(child_dir_path_))));
EXPECT_TRUE(VirtualFileExists(dest_dir_path.Append(
- child_dir_path_.BaseName()).Append(
- grandchild_file1_path_.BaseName())));
+ VirtualPath::BaseName(child_dir_path_)).Append(
+ VirtualPath::BaseName(grandchild_file1_path_))));
EXPECT_EQ(all_file_size, ActualSize());
EXPECT_EQ(all_file_size, SizeInUsageFile());
@@ -278,16 +278,16 @@ TEST_F(FileSystemQuotaTest, TestCopySuccessSrcDirRecursive) {
EXPECT_EQ(base::PLATFORM_FILE_OK, status());
EXPECT_TRUE(VirtualDirectoryExists(src_dir_path.Append(
- child_dir_path_.BaseName())));
+ VirtualPath::BaseName(child_dir_path_))));
EXPECT_TRUE(VirtualFileExists(src_dir_path.Append(
- child_dir_path_.BaseName()).Append(
- grandchild_file1_path_.BaseName())));
+ VirtualPath::BaseName(child_dir_path_)).Append(
+ VirtualPath::BaseName(grandchild_file1_path_))));
EXPECT_EQ(base::PLATFORM_FILE_OK, status());
EXPECT_TRUE(VirtualDirectoryExists(dest_dir1_path.Append(
- child_dir_path_.BaseName())));
+ VirtualPath::BaseName(child_dir_path_))));
EXPECT_TRUE(VirtualFileExists(dest_dir1_path.Append(
- child_dir_path_.BaseName()).Append(
- grandchild_file1_path_.BaseName())));
+ VirtualPath::BaseName(child_dir_path_)).Append(
+ VirtualPath::BaseName(grandchild_file1_path_))));
EXPECT_EQ(2 * all_file_size, ActualSize());
EXPECT_EQ(2 * all_file_size, SizeInUsageFile());
« no previous file with comments | « webkit/fileapi/file_system_operation_unittest.cc ('k') | webkit/fileapi/file_system_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698