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

Unified Diff: printing/printing_utils_unittest.cc

Issue 1656933004: Printing: Remove backslashes from print job names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/printing_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_utils_unittest.cc
diff --git a/printing/printing_utils_unittest.cc b/printing/printing_utils_unittest.cc
index 1bfba644ed015482fdea1606c82796ad845c957e..4a0442760d760bdfb4efcc625e6aa24c5b966086 100644
--- a/printing/printing_utils_unittest.cc
+++ b/printing/printing_utils_unittest.cc
@@ -31,6 +31,7 @@ TEST(PrintingUtilsTest, SimplifyDocumentTitle) {
EXPECT_EQ("abcdefgh", Simplify("abcdefgh"));
EXPECT_EQ("abc...ij", Simplify("abcdefghij"));
EXPECT_EQ("Controls", Simplify("C\ron\nt\15rols"));
+ EXPECT_EQ("C:_foo_", Simplify("C:\\foo\\"));
EXPECT_EQ("", Simplify("\n\r\n\r\t\r"));
}
@@ -41,8 +42,8 @@ TEST(PrintingUtilsTest, FormatDocumentTitleWithOwner) {
EXPECT_EQ("abc: 123", Format("abc", "123"));
EXPECT_EQ("abc: 0.9", Format("abc", "0123456789"));
EXPECT_EQ("ab...j: ", Format("abcdefghij", "123"));
+ EXPECT_EQ("xyz: _.o", Format("xyz", "\\f\\oo"));
EXPECT_EQ("ab...j: ", Format("abcdefghij", "0123456789"));
}
} // namespace printing
-
« no previous file with comments | « printing/printing_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698