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

Unified Diff: chrome/browser/printing/print_system_task_proxy.h

Issue 8572036: CUPS: Add a regression test for duplex detection. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « no previous file | chrome/browser/printing/print_system_task_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_system_task_proxy.h
===================================================================
--- chrome/browser/printing/print_system_task_proxy.h (revision 110345)
+++ chrome/browser/printing/print_system_task_proxy.h (working copy)
@@ -8,12 +8,14 @@
#include <string>
+#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"
-#include "chrome/browser/ui/webui/print_preview_handler.h"
#include "content/public/browser/browser_thread.h"
+class PrintPreviewHandler;
+
namespace base {
class DictionaryValue;
class StringValue;
@@ -21,6 +23,7 @@
namespace printing {
class PrintBackend;
+struct PrinterCapsAndDefaults;
}
#if defined(UNIT_TEST) && defined(USE_CUPS) && !defined(OS_MACOSX)
@@ -56,6 +59,33 @@
content::BrowserThread::UI>;
friend class DeleteTask<PrintSystemTaskProxy>;
+#if defined(UNIT_TEST) && defined(USE_CUPS)
+ FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectDuplexModeCUPS);
+ FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectNoDuplexModeCUPS);
+
+ // Only used for testing.
+ PrintSystemTaskProxy();
+#endif
+
+#if defined(USE_CUPS)
+ bool GetPrinterCapabilitiesCUPS(
+ const printing::PrinterCapsAndDefaults& printer_info,
+ const std::string& printer_name,
+ bool* set_color_as_default,
+ int* printer_color_space_for_color,
+ int* printer_color_space_for_black,
+ bool* set_duplex_as_default,
+ int* default_duplex_setting_value);
+#elif defined(OS_WIN)
+ void GetPrinterCapabilitiesWin(
+ const printing::PrinterCapsAndDefaults& printer_info,
+ bool* set_color_as_default,
+ int* printer_color_space_for_color,
+ int* printer_color_space_for_black,
+ bool* set_duplex_as_default,
+ int* default_duplex_setting_value);
+#endif
+
void SendDefaultPrinter(const std::string* default_printer,
const std::string* cloud_print_data);
void SetupPrinterList(base::ListValue* printers);
« no previous file with comments | « no previous file | chrome/browser/printing/print_system_task_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698