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

Unified Diff: net/url_request/url_fetcher_impl_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
« no previous file with comments | « net/tools/crash_cache/crash_cache.cc ('k') | sql/connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher_impl_unittest.cc
diff --git a/net/url_request/url_fetcher_impl_unittest.cc b/net/url_request/url_fetcher_impl_unittest.cc
index 4e42ed47deb10b90f50d2d786d5b83382fefb9d1..1a70ed4019063f1547f9d9e6def17aff58ebefa8 100644
--- a/net/url_request/url_fetcher_impl_unittest.cc
+++ b/net/url_request/url_fetcher_impl_unittest.cc
@@ -1369,7 +1369,7 @@ TEST_F(URLFetcherFileTest, SmallGet) {
base::MessageLoop::current()->Run(); // OnURLFetchComplete() will Quit().
- ASSERT_FALSE(file_util::PathExists(file_path_))
+ ASSERT_FALSE(base::PathExists(file_path_))
<< file_path_.value() << " not removed.";
}
@@ -1417,7 +1417,7 @@ TEST_F(URLFetcherFileTest, SavedOutputFileOwnerhisp) {
base::MessageLoop::current()->Run(); // OnURLFetchComplete() will Quit().
base::MessageLoop::current()->RunUntilIdle();
- ASSERT_EQ(kTake[i], file_util::PathExists(file_path_)) <<
+ ASSERT_EQ(kTake[i], base::PathExists(file_path_)) <<
"FilePath: " << file_path_.value();
}
}
@@ -1437,7 +1437,7 @@ TEST_F(URLFetcherFileTest, OverwriteExistingFile) {
file_path_ = temp_dir.path().AppendASCII(kFileToFetch);
ASSERT_EQ(static_cast<int>(data.size()),
file_util::WriteFile(file_path_, data.data(), data.size()));
- ASSERT_TRUE(file_util::PathExists(file_path_));
+ ASSERT_TRUE(base::PathExists(file_path_));
expected_file_ = test_server.GetDocumentRoot().AppendASCII(kFileToFetch);
ASSERT_FALSE(file_util::ContentsEqual(file_path_, expected_file_));
@@ -1462,7 +1462,7 @@ TEST_F(URLFetcherFileTest, TryToOverwriteDirectory) {
static const char kFileToFetch[] = "simple.html";
file_path_ = temp_dir.path().AppendASCII(kFileToFetch);
ASSERT_TRUE(file_util::CreateDirectory(file_path_));
- ASSERT_TRUE(file_util::PathExists(file_path_));
+ ASSERT_TRUE(base::PathExists(file_path_));
// Get a small file.
expected_file_error_ = ERR_ACCESS_DENIED;
@@ -1490,7 +1490,7 @@ TEST_F(URLFetcherFileTest, SmallGetToTempFile) {
base::MessageLoop::current()->Run(); // OnURLFetchComplete() will Quit().
- ASSERT_FALSE(file_util::PathExists(file_path_))
+ ASSERT_FALSE(base::PathExists(file_path_))
<< file_path_.value() << " not removed.";
}
@@ -1531,7 +1531,7 @@ TEST_F(URLFetcherFileTest, SavedOutputTempFileOwnerhisp) {
base::MessageLoop::current()->Run(); // OnURLFetchComplete() will Quit().
base::MessageLoop::current()->RunUntilIdle();
- ASSERT_EQ(kTake[i], file_util::PathExists(file_path_)) <<
+ ASSERT_EQ(kTake[i], base::PathExists(file_path_)) <<
"FilePath: " << file_path_.value();
}
}
« no previous file with comments | « net/tools/crash_cache/crash_cache.cc ('k') | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698