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

Unified Diff: net/url_request/url_fetcher_impl_unittest.cc

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the 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/testserver/run_testserver.cc ('k') | remoting/host/setup/daemon_controller_linux.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 1a70ed4019063f1547f9d9e6def17aff58ebefa8..7cc1674b181b1453cf48af66a866202a660d84c1 100644
--- a/net/url_request/url_fetcher_impl_unittest.cc
+++ b/net/url_request/url_fetcher_impl_unittest.cc
@@ -876,7 +876,7 @@ void URLFetcherFileTest::OnURLFetchComplete(const URLFetcher* source) {
EXPECT_TRUE(source->GetResponseAsFilePath(
take_ownership_of_file_, &file_path_));
- EXPECT_TRUE(file_util::ContentsEqual(expected_file_, file_path_));
+ EXPECT_TRUE(base::ContentsEqual(expected_file_, file_path_));
} else {
int error_code = OK;
EXPECT_TRUE(fetcher_->FileErrorOccurred(&error_code));
@@ -1439,7 +1439,7 @@ TEST_F(URLFetcherFileTest, OverwriteExistingFile) {
file_util::WriteFile(file_path_, data.data(), data.size()));
ASSERT_TRUE(base::PathExists(file_path_));
expected_file_ = test_server.GetDocumentRoot().AppendASCII(kFileToFetch);
- ASSERT_FALSE(file_util::ContentsEqual(file_path_, expected_file_));
+ ASSERT_FALSE(base::ContentsEqual(file_path_, expected_file_));
// Get a small file.
CreateFetcherForFile(
« no previous file with comments | « net/tools/testserver/run_testserver.cc ('k') | remoting/host/setup/daemon_controller_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698