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

Unified Diff: printing/backend/print_backend_unittest.cc

Issue 10963050: Set max title size to 50 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « printing/backend/print_backend.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/print_backend_unittest.cc
diff --git a/printing/backend/print_backend_unittest.cc b/printing/backend/print_backend_unittest.cc
index c8016849fed00753a319ba2c019bfe7ae94110aa..55750359bb6cbe95621ecae726a5d3ee569ad93e 100644
--- a/printing/backend/print_backend_unittest.cc
+++ b/printing/backend/print_backend_unittest.cc
@@ -14,8 +14,9 @@ std::string Simplify(const char* title) {
TEST(PrintBackendTest, SimplifyDocumentTitle) {
EXPECT_STREQ("", Simplify("").c_str());
- EXPECT_STREQ("Document wi...oooong name",
- Simplify("Document with very looooooooooong name").c_str());
+ EXPECT_STREQ("Long string. Long string...ng string. Long string.",
+ Simplify("Long string. Long string. Long string. Long string. "
+ "Long string. Long string. Long string.").c_str());
EXPECT_STREQ("Control Characters",
Simplify("C\ron\ntrol Charac\15ters").c_str());
EXPECT_STREQ("", Simplify("\n\r\n\r\t\r").c_str());
« no previous file with comments | « printing/backend/print_backend.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698