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

Unified Diff: components/mus/ws/event_matcher_unittest.cc

Issue 2057793002: Reorganize event mojom files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos in comments. Created 4 years, 6 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/mus/ws/event_matcher.cc ('k') | components/mus/ws/window_manager_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/event_matcher_unittest.cc
diff --git a/components/mus/ws/event_matcher_unittest.cc b/components/mus/ws/event_matcher_unittest.cc
index 97bd5bbe5c36919e7a7d7ca1ffe9c3209c4ad697..04c011fb4593d83ce1d81f38cdba7c7acd5c6e00 100644
--- a/components/mus/ws/event_matcher_unittest.cc
+++ b/components/mus/ws/event_matcher_unittest.cc
@@ -6,9 +6,9 @@
#include "base/time/time.h"
#include "components/mus/public/interfaces/event_matcher.mojom.h"
-#include "components/mus/public/interfaces/input_key_codes.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event.h"
+#include "ui/events/mojo/event_constants.mojom.h"
#include "ui/gfx/geometry/point.h"
namespace mus {
@@ -23,7 +23,7 @@ using EventTesterTest = testing::Test;
TEST_F(EventTesterTest, MatchesEventByType) {
mojom::EventMatcherPtr matcher = mojom::EventMatcher::New();
matcher->type_matcher = mojom::EventTypeMatcher::New();
- matcher->type_matcher->type = mojom::EventType::POINTER_DOWN;
+ matcher->type_matcher->type = ui::mojom::EventType::POINTER_DOWN;
EventMatcher pointer_down_matcher(*matcher);
ui::PointerEvent pointer_down(
@@ -38,9 +38,9 @@ TEST_F(EventTesterTest, MatchesEventByType) {
TEST_F(EventTesterTest, MatchesEventByKeyCode) {
mojom::EventMatcherPtr matcher(mojom::EventMatcher::New());
matcher->type_matcher = mojom::EventTypeMatcher::New();
- matcher->type_matcher->type = mojom::EventType::KEY_PRESSED;
+ matcher->type_matcher->type = ui::mojom::EventType::KEY_PRESSED;
matcher->key_matcher = mojom::KeyEventMatcher::New();
- matcher->key_matcher->keyboard_code = mojom::KeyboardCode::Z;
+ matcher->key_matcher->keyboard_code = ui::mojom::KeyboardCode::Z;
EventMatcher z_matcher(*matcher);
ui::KeyEvent z_key(ui::ET_KEY_PRESSED, ui::VKEY_Z, ui::EF_NONE);
@@ -53,11 +53,11 @@ TEST_F(EventTesterTest, MatchesEventByKeyCode) {
TEST_F(EventTesterTest, MatchesEventByKeyFlags) {
mojom::EventMatcherPtr matcher(mojom::EventMatcher::New());
matcher->type_matcher = mojom::EventTypeMatcher::New();
- matcher->type_matcher->type = mojom::EventType::KEY_PRESSED;
+ matcher->type_matcher->type = ui::mojom::EventType::KEY_PRESSED;
matcher->flags_matcher = mojom::EventFlagsMatcher::New();
- matcher->flags_matcher->flags = mojom::kEventFlagControlDown;
+ matcher->flags_matcher->flags = ui::mojom::kEventFlagControlDown;
matcher->key_matcher = mojom::KeyEventMatcher::New();
- matcher->key_matcher->keyboard_code = mojom::KeyboardCode::N;
+ matcher->key_matcher->keyboard_code = ui::mojom::KeyboardCode::N;
EventMatcher control_n_matcher(*matcher);
ui::KeyEvent control_n(ui::ET_KEY_PRESSED, ui::VKEY_N, ui::EF_CONTROL_DOWN);
« no previous file with comments | « components/mus/ws/event_matcher.cc ('k') | components/mus/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698