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

Unified Diff: printing/backend/print_backend_unittest.cc

Issue 59903019: Moved SimplifyDocumentTitle from printing/backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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') | printing/printing.gyp » ('j') | 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
deleted file mode 100644
index 356a34627bf4f6cba581a4067fc9255e70df53db..0000000000000000000000000000000000000000
--- a/printing/backend/print_backend_unittest.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/strings/utf_string_conversions.h"
-#include "printing/backend/print_backend.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace printing {
-
-std::string Simplify(const char* title) {
- return UTF16ToUTF8(PrintBackend::SimplifyDocumentTitle(ASCIIToUTF16(title)));
-}
-
-TEST(PrintBackendTest, SimplifyDocumentTitle) {
- EXPECT_STREQ("", Simplify("").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());
-}
-
-} // namespace printing
-
« no previous file with comments | « printing/backend/print_backend.cc ('k') | printing/printing.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698