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

Unified Diff: components/html_viewer/input_events_unittest.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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 | « components/html_viewer/html_frame_tree_manager.cc ('k') | components/html_viewer/touch_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/input_events_unittest.cc
diff --git a/components/html_viewer/input_events_unittest.cc b/components/html_viewer/input_events_unittest.cc
index 4a28bbec169e231d6e91719c60e3e8ef436f9c0f..f5c16ca529175cb6ef9488ca64f6542578bd014a 100644
--- a/components/html_viewer/input_events_unittest.cc
+++ b/components/html_viewer/input_events_unittest.cc
@@ -26,8 +26,8 @@ TEST(InputEventLibTest, MouseEventConversion) {
mus::mojom::EventPtr mojo_event(mus::mojom::Event::From(*mouseev));
- EXPECT_EQ(mus::mojom::EVENT_TYPE_POINTER_DOWN, mojo_event->action);
- EXPECT_EQ(mus::mojom::POINTER_KIND_MOUSE, mojo_event->pointer_data->kind);
+ EXPECT_EQ(mus::mojom::EventType::POINTER_DOWN, mojo_event->action);
+ EXPECT_EQ(mus::mojom::PointerKind::MOUSE, mojo_event->pointer_data->kind);
scoped_ptr<blink::WebInputEvent> webevent =
mojo_event.To<scoped_ptr<blink::WebInputEvent>>();
@@ -52,7 +52,7 @@ TEST(InputEventLibTest, MouseWheelEventConversionNonPrecise) {
mus::mojom::EventPtr mojo_event(mus::mojom::Event::From(*original_wheel));
- EXPECT_EQ(mus::mojom::EVENT_TYPE_WHEEL, mojo_event->action);
+ EXPECT_EQ(mus::mojom::EventType::WHEEL, mojo_event->action);
// Exercise the blink converter.
scoped_ptr<blink::WebInputEvent> webevent =
« no previous file with comments | « components/html_viewer/html_frame_tree_manager.cc ('k') | components/html_viewer/touch_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698