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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc

Issue 517193003: More System Dialog printing code disabled on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@522493002
Patch Set: Mon Sep 8 01:10:20 PDT 2014 Created 6 years, 3 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 | « chrome/browser/ui/webui/print_preview/print_preview_ui.cc ('k') | chrome/common/print_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc b/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc
index 81ef698e79d6a45570d92eee01ad2d21ce51c3fe..bfb92a559374b1c23cfd36eb4a41e18930b75b49 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc
@@ -56,22 +56,22 @@ IN_PROC_BROWSER_TEST_F(PrintPreviewTest, PrintCommands) {
ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT));
-#if defined(OS_WIN)
- bool is_advanced_print_expected = false;
+#if defined(DISABLE_BASIC_PRINTING)
+ bool is_basic_print_expected = false;
#else
- bool is_advanced_print_expected = true;
-#endif // OS_WIN
+ bool is_basic_print_expected = true;
+#endif // DISABLE_BASIC_PRINTING
- ASSERT_EQ(is_advanced_print_expected,
- chrome::IsCommandEnabled(browser(), IDC_ADVANCED_PRINT));
+ ASSERT_EQ(is_basic_print_expected,
+ chrome::IsCommandEnabled(browser(), IDC_BASIC_PRINT));
// Create the print preview dialog.
Print();
ASSERT_FALSE(chrome::IsCommandEnabled(browser(), IDC_PRINT));
- ASSERT_EQ(is_advanced_print_expected,
- chrome::IsCommandEnabled(browser(), IDC_ADVANCED_PRINT));
+ ASSERT_EQ(is_basic_print_expected,
+ chrome::IsCommandEnabled(browser(), IDC_BASIC_PRINT));
content::TestNavigationObserver reload_observer(
browser()->tab_strip_model()->GetActiveWebContents());
@@ -80,8 +80,8 @@ IN_PROC_BROWSER_TEST_F(PrintPreviewTest, PrintCommands) {
ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT));
- ASSERT_EQ(is_advanced_print_expected,
- chrome::IsCommandEnabled(browser(), IDC_ADVANCED_PRINT));
+ ASSERT_EQ(is_basic_print_expected,
+ chrome::IsCommandEnabled(browser(), IDC_BASIC_PRINT));
}
// Disable the test for mac, see http://crbug/367665.
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.cc ('k') | chrome/common/print_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698