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

Unified Diff: base/prefs/json_pref_store_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 | « base/nix/mime_util_xdg.cc ('k') | base/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/json_pref_store_unittest.cc
diff --git a/base/prefs/json_pref_store_unittest.cc b/base/prefs/json_pref_store_unittest.cc
index 5c506d4320837152d0d2f2a61a32d770594f10c7..dcfea71a8ce12ad62fdc9899f81f44f46b80c869 100644
--- a/base/prefs/json_pref_store_unittest.cc
+++ b/base/prefs/json_pref_store_unittest.cc
@@ -81,8 +81,7 @@ TEST_F(JsonPrefStoreTest, InvalidFile) {
EXPECT_FALSE(PathExists(invalid_file));
base::FilePath moved_aside = temp_dir_.path().AppendASCII("invalid.bad");
EXPECT_TRUE(PathExists(moved_aside));
- EXPECT_TRUE(file_util::TextContentsEqual(invalid_file_original,
- moved_aside));
+ EXPECT_TRUE(TextContentsEqual(invalid_file_original, moved_aside));
}
// This function is used to avoid code duplication while testing synchronous and
@@ -147,7 +146,7 @@ void RunBasicJsonPrefStoreTest(JsonPrefStore* pref_store,
ASSERT_TRUE(PathExists(golden_output_file));
pref_store->CommitPendingWrite();
RunLoop().RunUntilIdle();
- EXPECT_TRUE(file_util::TextContentsEqual(golden_output_file, output_file));
+ EXPECT_TRUE(TextContentsEqual(golden_output_file, output_file));
ASSERT_TRUE(base::Delete(output_file, false));
}
@@ -282,7 +281,7 @@ TEST_F(JsonPrefStoreTest, NeedsEmptyValue) {
base::FilePath golden_output_file =
data_dir_.AppendASCII("write.golden.need_empty_value.json");
ASSERT_TRUE(PathExists(golden_output_file));
- EXPECT_TRUE(file_util::TextContentsEqual(golden_output_file, pref_file));
+ EXPECT_TRUE(TextContentsEqual(golden_output_file, pref_file));
}
} // namespace base
« no previous file with comments | « base/nix/mime_util_xdg.cc ('k') | base/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698