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

Unified Diff: ui/views/controls/menu/menu_controller_unittest.cc

Issue 296033003: ozone: views: Fix menu_controller_unittest test build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add #error Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller_unittest.cc
diff --git a/ui/views/controls/menu/menu_controller_unittest.cc b/ui/views/controls/menu/menu_controller_unittest.cc
index 7aa23a317f5567796374d48308f376f97ab516ae..dd67cfb85a5563e318bb1fe75b85057f2c83b199 100644
--- a/ui/views/controls/menu/menu_controller_unittest.cc
+++ b/ui/views/controls/menu/menu_controller_unittest.cc
@@ -16,6 +16,8 @@
#include <X11/Xlib.h>
#undef Bool
#undef None
+#elif defined(USE_OZONE)
+#include "ui/events/event.h"
#endif
namespace views {
@@ -83,10 +85,15 @@ class MenuControllerTest : public ViewsTestBase {
XEvent xevent;
memset(&xevent, 0, sizeof(xevent));
event_source_.Dispatch(&xevent);
-#else
+#elif defined(OS_WIN)
MSG msg;
memset(&msg, 0, sizeof(MSG));
dispatcher_client_.dispatcher()->Dispatch(msg);
+#elif defined(USE_OZONE)
+ ui::KeyEvent event(ui::ET_KEY_PRESSED, ui::VKEY_SPACE, 0, true);
+ dispatcher_client_.dispatcher()->Dispatch(&event);
+#else
+#error Unsupported platform
#endif
if (count) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698