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

Unified Diff: chrome/common/json_value_serializer_unittest.cc

Issue 147220: Use platform-appropriate newlines in JSON output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/json_writer_unittest.cc ('k') | chrome/common/pref_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/json_value_serializer_unittest.cc
===================================================================
--- chrome/common/json_value_serializer_unittest.cc (revision 19366)
+++ chrome/common/json_value_serializer_unittest.cc (working copy)
@@ -293,7 +293,8 @@
ASSERT_TRUE(file_util::PathExists(written_file_path));
// Now compare file contents.
- EXPECT_TRUE(file_util::ContentsEqual(original_file_path, written_file_path));
+ EXPECT_TRUE(file_util::TextContentsEqual(original_file_path,
+ written_file_path));
EXPECT_TRUE(file_util::Delete(written_file_path, false));
}
@@ -321,7 +322,8 @@
ASSERT_TRUE(file_util::PathExists(written_file_path));
// Now compare file contents.
- EXPECT_TRUE(file_util::ContentsEqual(original_file_path, written_file_path));
+ EXPECT_TRUE(file_util::TextContentsEqual(original_file_path,
+ written_file_path));
EXPECT_TRUE(file_util::Delete(written_file_path, false));
}
« no previous file with comments | « base/json_writer_unittest.cc ('k') | chrome/common/pref_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698