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

Unified Diff: chrome/browser/ui/webui/print_preview_handler_unittest.cc

Issue 8665006: Build & run unit tests on Aura. (Closed) Base URL: svn://svn.chromium.org/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/ui/webui/print_preview_handler_unittest.cc
===================================================================
--- chrome/browser/ui/webui/print_preview_handler_unittest.cc (revision 111220)
+++ chrome/browser/ui/webui/print_preview_handler_unittest.cc (working copy)
@@ -17,6 +17,25 @@
#include "printing/page_size_margins.h"
#include "printing/print_job_constants.h"
+// Test crashes on Aura due to initiator tab's native view having no parent.
+// http://crbug.com/104284
+#if defined(USE_AURA)
+#define MAYBE_StickyMarginsCustom DISABLED_StickyMarginsCustom
+#define MAYBE_StickyMarginsDefault DISABLED_StickyMarginsDefault
+#define MAYBE_StickyMarginsCustomThenDefault \
+ DISABLED_StickyMarginsCustomThenDefault
+#define MAYBE_GetLastUsedMarginSettingsCustom \
+ DISABLED_GetLastUsedMarginSettingsCustom
+#define MAYBE_GetLastUsedMarginSettingsDefault \
+ DISABLED_GetLastUsedMarginSettingsDefault
+#else
+#define MAYBE_StickyMarginsCustom StickyMarginsCustom
+#define MAYBE_StickyMarginsDefault StickyMarginsDefault
+#define MAYBE_StickyMarginsCustomThenDefault StickyMarginsCustomThenDefault
+#define MAYBE_GetLastUsedMarginSettingsCustom GetLastUsedMarginSettingsCustom
+#define MAYBE_GetLastUsedMarginSettingsDefault GetLastUsedMarginSettingsDefault
+#endif
+
namespace {
DictionaryValue* GetCustomMarginsDictionary(
@@ -147,13 +166,6 @@
}
};
-// Test crashs on TouchUI due to initiator tab's native view having no parent.
-// http://crbug.com/104284
-#if defined(TOUCH_UI)
-#define MAYBE_StickyMarginsCustom DISABLED_StickyMarginsCustom
-#else
-#define MAYBE_StickyMarginsCustom StickyMarginsCustom
-#endif
// Tests that margin settings are saved correctly when printing with custom
// margins selected.
TEST_F(PrintPreviewHandlerTest, MAYBE_StickyMarginsCustom) {
@@ -173,12 +185,6 @@
CheckCustomMargins(kMarginTop, kMarginRight, kMarginBottom, kMarginLeft);
}
-// http://crbug.com/104284
-#if defined(TOUCH_UI)
-#define MAYBE_StickyMarginsDefault DISABLED_StickyMarginsDefault
-#else
-#define MAYBE_StickyMarginsDefault StickyMarginsDefault
-#endif
// Tests that margin settings are saved correctly when printing with default
// margins selected.
TEST_F(PrintPreviewHandlerTest, MAYBE_StickyMarginsDefault) {
@@ -192,13 +198,6 @@
ASSERT_FALSE(PrintPreviewHandler::last_used_page_size_margins_);
}
-// http://crbug.com/104284
-#if defined(TOUCH_UI)
-#define MAYBE_StickyMarginsCustomThenDefault \
- DISABLED_StickyMarginsCustomThenDefault
-#else
-#define MAYBE_StickyMarginsCustomThenDefault StickyMarginsCustomThenDefault
-#endif
// Tests that margin settings are saved correctly when printing with custom
// margins selected and then again with default margins selected.
TEST_F(PrintPreviewHandlerTest, MAYBE_StickyMarginsCustomThenDefault) {
@@ -226,13 +225,6 @@
CheckCustomMargins(kMarginTop, kMarginRight, kMarginBottom, kMarginLeft);
}
-// http://crbug.com/104284
-#if defined(TOUCH_UI)
-#define MAYBE_GetLastUsedMarginSettingsCustom \
- DISABLED_GetLastUsedMarginSettingsCustom
-#else
-#define MAYBE_GetLastUsedMarginSettingsCustom GetLastUsedMarginSettingsCustom
-#endif
// Tests that margin settings are retrieved correctly after printing with custom
// margins.
TEST_F(PrintPreviewHandlerTest, MAYBE_GetLastUsedMarginSettingsCustom) {
@@ -263,13 +255,6 @@
EXPECT_EQ(kMarginLeft, margin_value);
}
-// http://crbug.com/104284
-#if defined(TOUCH_UI)
-#define MAYBE_GetLastUsedMarginSettingsDefault \
- DISABLED_GetLastUsedMarginSettingsDefault
-#else
-#define MAYBE_GetLastUsedMarginSettingsDefault GetLastUsedMarginSettingsDefault
-#endif
// Tests that margin settings are retrieved correctly after printing with
// default margins.
TEST_F(PrintPreviewHandlerTest, MAYBE_GetLastUsedMarginSettingsDefault) {
« no previous file with comments | « chrome/browser/ui/select_file_dialog_unittest.cc ('k') | chrome/browser/ui/webui/print_preview_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698