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

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
Index: chrome/browser/printing/print_system_task_proxy.h
===================================================================
--- chrome/browser/printing/print_system_task_proxy.h (revision 110200)
+++ chrome/browser/printing/print_system_task_proxy.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_
#pragma once
+#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"
@@ -20,6 +21,7 @@
namespace printing {
class PrintBackend;
+struct PrinterCapsAndDefaults;
}
#if defined(UNIT_TEST) && defined(USE_CUPS) && !defined(OS_MACOSX)
@@ -54,7 +56,32 @@
friend struct content::BrowserThread::DeleteOnThread<
content::BrowserThread::UI>;
friend class DeleteTask<PrintSystemTaskProxy>;
+#if defined(USE_CUPS)
+ FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectDuplexModeCUPS);
+#endif
+ // Only used for testing.
+ PrintSystemTaskProxy();
kmadhusu 2011/11/16 20:43:29 if defined(UNIT_TEST) && defined(USE_CUPS) Print
Lei Zhang 2011/11/17 00:20:16 Done.
+
+#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);

Powered by Google App Engine
This is Rietveld 408576698