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

Side by Side Diff: ash/wm/user_activity_detector_unittest.cc

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/user_activity_detector.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/wm/user_activity_detector.h" 5 #include "ash/wm/user_activity_detector.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/test/ash_test_base.h" 8 #include "ash/test/ash_test_base.h"
9 #include "ash/wm/user_activity_observer.h" 9 #include "ash/wm/user_activity_observer.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "ui/aura/test/test_windows.h" 13 #include "ui/aura/test/test_windows.h"
14 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
15 #include "ui/base/event.h" 15 #include "ui/base/events/event.h"
16 #include "ui/base/events.h" 16 #include "ui/base/events/event_constants.h"
17 #include "ui/base/keycodes/keyboard_codes.h" 17 #include "ui/base/keycodes/keyboard_codes.h"
18 #include "ui/gfx/point.h" 18 #include "ui/gfx/point.h"
19 19
20 namespace ash { 20 namespace ash {
21 namespace test { 21 namespace test {
22 22
23 // Implementation that just counts the number of times we've been told that the 23 // Implementation that just counts the number of times we've been told that the
24 // user is active. 24 // user is active.
25 class TestUserActivityObserver : public UserActivityObserver { 25 class TestUserActivityObserver : public UserActivityObserver {
26 public: 26 public:
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 scoped_ptr<aura::Window> window( 152 scoped_ptr<aura::Window> window(
153 aura::test::CreateTestWindowWithId(12345, NULL)); 153 aura::test::CreateTestWindowWithId(12345, NULL));
154 ui::MouseEvent mouse_event( 154 ui::MouseEvent mouse_event(
155 ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), ui::EF_IS_SYNTHESIZED); 155 ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), ui::EF_IS_SYNTHESIZED);
156 EXPECT_FALSE(detector_->PreHandleMouseEvent(window.get(), &mouse_event)); 156 EXPECT_FALSE(detector_->PreHandleMouseEvent(window.get(), &mouse_event));
157 EXPECT_EQ(0, observer_->num_invocations()); 157 EXPECT_EQ(0, observer_->num_invocations());
158 } 158 }
159 159
160 } // namespace test 160 } // namespace test
161 } // namespace ash 161 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/user_activity_detector.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698