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

Unified Diff: cloud_print/virtual_driver/posix/virtual_driver_posix_tests.cc

Issue 9307087: Remove code for Mac and Linux virtual print drivers. (Closed)
Patch Set: Nuke linux too Created 8 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
Index: cloud_print/virtual_driver/posix/virtual_driver_posix_tests.cc
diff --git a/cloud_print/virtual_driver/posix/virtual_driver_posix_tests.cc b/cloud_print/virtual_driver/posix/virtual_driver_posix_tests.cc
deleted file mode 100644
index 34869afb4c52516baa3557ae2d084fc36d06eff0..0000000000000000000000000000000000000000
--- a/cloud_print/virtual_driver/posix/virtual_driver_posix_tests.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2011 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 "cloud_print/virtual_driver/posix/printer_driver_util_posix.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace printer_driver_util {
-
-void test_helper(const char* input, std::string expected_output) {
- std::string test;
- GetOptions(input, &test);
- EXPECT_EQ(expected_output, test);
-}
-
-TEST(PrintTicketTest, HandlesEmpty) {
- test_helper("", "{}");
-}
-
-TEST(PrintTicketTest, HandlesNull) {
- test_helper(NULL, "{}");
-}
-
-TEST(PrintTicketTest, HandlesOneOption) {
- test_helper("Resolution=500", "{\"Resolution\":\"500\"}");
-}
-
-TEST(PrintTicketTest, HandlesMutipleOptions) {
- test_helper("Resolution=500 DPI=1100",
- "{\"DPI\":\"1100\",\"Resolution\":\"500\"}");
-}
-
-TEST(PrintTicketTest, HandlesErrorInOptions) {
- test_helper("Resolution=500 Foo DPI=1100",
- "{\"DPI\":\"1100\",\"Resolution\":\"500\"}");
-}
-
-TEST(PrintTicketTest, HandlesMutipleSpaces) {
- test_helper("Resolution=500 DPI=1100",
- "{\"DPI\":\"1100\",\"Resolution\":\"500\"}");
-}
-
-TEST(PrintTicketTest, HandlesEscapedSpace) {
- test_helper("Job\\ Owner=First\\ Last",
- "{\"Job Owner\":\"First Last\"}");
-}
-
-TEST(PrintTicketTest, HandlesMultipleEscapedWords) {
- test_helper("Job\\ Owner\\ Name=First\\ Last",
- "{\"Job Owner Name\":\"First Last\"}");
-}
-
-TEST(PrintTicketTest, HandlesMultipleEscapedSpaces) {
- test_helper("Job\\ Owner\\ \\ Name=First\\ Last",
- "{\"Job Owner Name\":\"First Last\"}");
-}
-
-TEST(PrintTicketTest, HandlesKeyEndsInEscapedSpace) {
- test_helper("Job\\ Owner\\ =First\\ Last",
- "{\"Job Owner \":\"First Last\"}");
-}
-
-TEST(PrintTicketTest, HandlesSlashAtEnd) {
- test_helper("Job\\ Owner=First\\ Last\\",
- "{\"Job Owner\":\"First Last\\\\\"}");
-}
-
-
-} // namespace printer_driver_util
-
-int main(int argc, char **argv) {
- ::testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}
-

Powered by Google App Engine
This is Rietveld 408576698