summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 21:17:24 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 21:17:24 +0000
commitb81637c3d9f2cf895b81d5b673b88668b6bc1322 (patch)
tree795f338852b7d40508e837ece010d64b4ad14d9f /base/file_util.h
parenteb0ef6ce145aab92fdf7f99f4ebe14ef7b03736c (diff)
downloadchromium_src-b81637c3d9f2cf895b81d5b673b88668b6bc1322.zip
chromium_src-b81637c3d9f2cf895b81d5b673b88668b6bc1322.tar.gz
chromium_src-b81637c3d9f2cf895b81d5b673b88668b6bc1322.tar.bz2
Use platform-appropriate newlines in JSON output.
BUG=15462 TEST=base_unittests, unit_tests, check newlines in bookmarks file Review URL: http://codereview.chromium.org/147220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h
index 63bbf1f..35b9dd5 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -212,6 +212,10 @@ bool ContentsEqual(const FilePath& filename1,
bool ContentsEqual(const std::wstring& filename1,
const std::wstring& filename2);
+// Returns true if the contents of the two text files given are equal, false
+// otherwise. This routine treats "\r\n" and "\n" as equivalent.
+bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2);
+
// Read the file at |path| into |contents|, returning true on success.
// Useful for unit tests.
bool ReadFileToString(const FilePath& path, std::string* contents);