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

Unified Diff: webkit/browser/fileapi/local_file_stream_writer_unittest.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: webkit/browser/fileapi/local_file_stream_writer_unittest.cc
diff --git a/webkit/browser/fileapi/local_file_stream_writer_unittest.cc b/webkit/browser/fileapi/local_file_stream_writer_unittest.cc
index 54ac218033d131941c3560108956a22bf4f11a94..84e9a8c16c4f6b46f2d1a86909fee59acbfc3b77 100644
--- a/webkit/browser/fileapi/local_file_stream_writer_unittest.cc
+++ b/webkit/browser/fileapi/local_file_stream_writer_unittest.cc
@@ -100,7 +100,7 @@ TEST_F(LocalFileStreamWriterTest, Write) {
EXPECT_EQ(net::OK, WriteStringToWriter(writer.get(), "bar"));
writer.reset();
base::MessageLoop::current()->RunUntilIdle();
- EXPECT_TRUE(file_util::PathExists(path));
+ EXPECT_TRUE(base::PathExists(path));
EXPECT_EQ("foobar", GetFileContent(path));
}
@@ -111,7 +111,7 @@ TEST_F(LocalFileStreamWriterTest, WriteMiddle) {
EXPECT_EQ(net::OK, WriteStringToWriter(writer.get(), "xxx"));
writer.reset();
base::MessageLoop::current()->RunUntilIdle();
- EXPECT_TRUE(file_util::PathExists(path));
+ EXPECT_TRUE(base::PathExists(path));
EXPECT_EQ("foxxxr", GetFileContent(path));
}
@@ -122,19 +122,19 @@ TEST_F(LocalFileStreamWriterTest, WriteEnd) {
EXPECT_EQ(net::OK, WriteStringToWriter(writer.get(), "xxx"));
writer.reset();
base::MessageLoop::current()->RunUntilIdle();
- EXPECT_TRUE(file_util::PathExists(path));
+ EXPECT_TRUE(base::PathExists(path));
EXPECT_EQ("foobarxxx", GetFileContent(path));
}
TEST_F(LocalFileStreamWriterTest, WriteFailForNonexistingFile) {
base::FilePath path = Path("file_a");
- ASSERT_FALSE(file_util::PathExists(path));
+ ASSERT_FALSE(base::PathExists(path));
scoped_ptr<LocalFileStreamWriter> writer(
new LocalFileStreamWriter(file_task_runner(), path, 0));
EXPECT_EQ(net::ERR_FILE_NOT_FOUND, WriteStringToWriter(writer.get(), "foo"));
writer.reset();
base::MessageLoop::current()->RunUntilIdle();
- EXPECT_FALSE(file_util::PathExists(path));
+ EXPECT_FALSE(base::PathExists(path));
}
TEST_F(LocalFileStreamWriterTest, CancelBeforeOperation) {
@@ -159,7 +159,7 @@ TEST_F(LocalFileStreamWriterTest, CancelAfterFinishedOperation) {
writer.reset();
base::MessageLoop::current()->RunUntilIdle();
// Write operation is already completed.
- EXPECT_TRUE(file_util::PathExists(path));
+ EXPECT_TRUE(base::PathExists(path));
EXPECT_EQ("foo", GetFileContent(path));
}
« no previous file with comments | « webkit/browser/fileapi/file_system_usage_cache.cc ('k') | webkit/browser/fileapi/local_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698