summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-23 01:13:51 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-23 01:13:51 +0000
commit97754245e5a0b08af8a4a64445e2cf43d4d6b463 (patch)
tree8533639b85cfbf1607244a965a949dbb224d0417 /printing
parent5d86a110369304e81bc12d1cd4d2c65440f0be69 (diff)
downloadchromium_src-97754245e5a0b08af8a4a64445e2cf43d4d6b463.zip
chromium_src-97754245e5a0b08af8a4a64445e2cf43d4d6b463.tar.gz
chromium_src-97754245e5a0b08af8a4a64445e2cf43d4d6b463.tar.bz2
Set max title size to 50
BUG=65469 Review URL: https://chromiumcodereview.appspot.com/10963050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/backend/print_backend.cc2
-rw-r--r--printing/backend/print_backend_unittest.cc5
2 files changed, 4 insertions, 3 deletions
diff --git a/printing/backend/print_backend.cc b/printing/backend/print_backend.cc
index 71f917d..2228ef9 100644
--- a/printing/backend/print_backend.cc
+++ b/printing/backend/print_backend.cc
@@ -12,7 +12,7 @@
namespace {
const wchar_t kDefaultDocumentTitle[] = L"Untitled Document";
-const int kMaxDocumentTitleLength = 25;
+const int kMaxDocumentTitleLength = 50;
} // namespace
diff --git a/printing/backend/print_backend_unittest.cc b/printing/backend/print_backend_unittest.cc
index c801684..5575035 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());