diff options
author | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-08 18:34:50 +0000 |
---|---|---|
committer | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-08 18:34:50 +0000 |
commit | 157854945014e688bcf787665a34134039a8cf7b (patch) | |
tree | bc0d994a65b9b12542d9973615097077719d41ad /chrome/browser/ui/browser_list_unittest.cc | |
parent | aee95160043d3164f4e99c8f24c9ee917011e9ac (diff) | |
download | chromium_src-157854945014e688bcf787665a34134039a8cf7b.zip chromium_src-157854945014e688bcf787665a34134039a8cf7b.tar.gz chromium_src-157854945014e688bcf787665a34134039a8cf7b.tar.bz2 |
Add PrintTo for string16
This is required by googletest to print a readable output when failing to compare two string16's (ref: http://goo.gl/jALbO)
Without this the output of a failed comparison could be:
Value of: ElideEmail(UTF8ToUTF16(testcases[i].input), font, font.GetStringWidth(expected_output))
Actual: { 97, 116, 34, 64, 64, 64, 64, 64, 64, 64, 64, 64, 46, 46, 46, 64, 64, 46, 8230, 64, 109, 97, 100, 110, 101, 115, 115, 46, 99, 111, 109 }
Expected: expected_output
Which is: { 97, 116, 34, 64, 64, 64, 64, 64, 64, 64, 64, 64, 46, 46, 46, 64, 64, 46, 64, 46, 8230, 64, 109, 97, 110, 101, 115, 115, 46, 99, 111, 109 }
With this patch the same error is now properly formatted:
Value of: ElideEmail(UTF8ToUTF16(testcases[i].input), font, font.GetStringWidth(expected_output))
Actual: at"@@@@@@@@@...@@.…@madness.com
Expected: expected_output
Which is: at"@@@@@@@@@...@@.@.…@maness.com
BUG=
TEST=unit_tests
Review URL: http://codereview.chromium.org/9641017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_list_unittest.cc')
0 files changed, 0 insertions, 0 deletions