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

Unified Diff: ash/wm/user_activity_detector_unittest.cc

Issue 101573006: Changes MouseEvent constructor to take changed_button_flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows side Created 7 years 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: ash/wm/user_activity_detector_unittest.cc
diff --git a/ash/wm/user_activity_detector_unittest.cc b/ash/wm/user_activity_detector_unittest.cc
index 89f6aee910a8dfb0a57f80ae958e34fb7b32aec3..338bb95979978bdc6abb62cda401675fed9416ea 100644
--- a/ash/wm/user_activity_detector_unittest.cc
+++ b/ash/wm/user_activity_detector_unittest.cc
@@ -105,7 +105,7 @@ TEST_F(UserActivityDetectorTest, Basic) {
UserActivityDetector::kNotifyIntervalMs);
AdvanceTime(advance_delta);
ui::MouseEvent mouse_event(
- ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), ui::EF_NONE);
+ ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), ui::EF_NONE, ui::EF_NONE);
SetEventTarget(window.get(), &mouse_event);
detector_->OnMouseEvent(&mouse_event);
EXPECT_FALSE(mouse_event.handled());
@@ -212,7 +212,8 @@ TEST_F(UserActivityDetectorTest, RateLimitNotifications) {
TEST_F(UserActivityDetectorTest, IgnoreSyntheticMouseEvents) {
scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(12345));
ui::MouseEvent mouse_event(
- ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), ui::EF_IS_SYNTHESIZED);
+ ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), ui::EF_IS_SYNTHESIZED,
+ ui::EF_NONE);
SetEventTarget(window.get(), &mouse_event);
detector_->OnMouseEvent(&mouse_event);
EXPECT_FALSE(mouse_event.handled());

Powered by Google App Engine
This is Rietveld 408576698