diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 17:36:07 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 17:36:07 +0000 |
commit | 7567484144da059e2c2c2a818b06660a5459052f (patch) | |
tree | a4ceafc7e890051c25dbdd54b170d0f5794dd229 /webkit/browser/fileapi/local_file_stream_writer_unittest.cc | |
parent | 8a25d54d6eb190a8b82479b5309a892c1080a372 (diff) | |
download | chromium_src-7567484144da059e2c2c2a818b06660a5459052f.zip chromium_src-7567484144da059e2c2c2a818b06660a5459052f.tar.gz chromium_src-7567484144da059e2c2c2a818b06660a5459052f.tar.bz2 |
Move PathExists to base namespace.
BUG=
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/18286004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/local_file_stream_writer_unittest.cc')
-rw-r--r-- | webkit/browser/fileapi/local_file_stream_writer_unittest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webkit/browser/fileapi/local_file_stream_writer_unittest.cc b/webkit/browser/fileapi/local_file_stream_writer_unittest.cc index 54ac218..84e9a8c 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)); } |