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

Side by Side Diff: ash/autoclick/autoclick_unittest.cc

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/autoclick/autoclick_controller.h" 5 #include "ash/autoclick/autoclick_controller.h"
6 #include "ash/shell.h" 6 #include "ash/shell.h"
7 #include "ash/test/ash_test_base.h" 7 #include "ash/test/ash_test_base.h"
8 #include "ui/aura/root_window.h"
8 #include "ui/aura/test/event_generator.h" 9 #include "ui/aura/test/event_generator.h"
9 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
10 #include "ui/events/event.h" 11 #include "ui/events/event.h"
11 #include "ui/events/event_constants.h" 12 #include "ui/events/event_constants.h"
12 #include "ui/events/event_handler.h" 13 #include "ui/events/event_handler.h"
13 #include "ui/events/keycodes/keyboard_codes.h" 14 #include "ui/events/keycodes/keyboard_codes.h"
14 15
15 namespace ash { 16 namespace ash {
16 17
17 class MouseEventCapturer : public ui::EventHandler { 18 class MouseEventCapturer : public ui::EventHandler {
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 generator2.MoveMouseTo(300, 400); 253 generator2.MoveMouseTo(300, 400);
253 events = WaitForMouseEvents(); 254 events = WaitForMouseEvents();
254 EXPECT_EQ(2u, events.size()); 255 EXPECT_EQ(2u, events.size());
255 EXPECT_EQ(300, events[0].root_location().x()); 256 EXPECT_EQ(300, events[0].root_location().x());
256 EXPECT_EQ(400, events[0].root_location().y()); 257 EXPECT_EQ(400, events[0].root_location().y());
257 258
258 // Test movement threshold between displays. 259 // Test movement threshold between displays.
259 } 260 }
260 261
261 } // namespace ash 262 } // namespace ash
OLDNEW
« no previous file with comments | « ash/autoclick/autoclick_controller.cc ('k') | ash/desktop_background/desktop_background_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698