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

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

Issue 18050008: Use a direct include of time headers in android_webview/, apps/, ash/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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.h ('k') | ash/wm/video_detector.h » ('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/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/events/event.h" 15 #include "ui/base/events/event.h"
16 #include "ui/base/events/event_constants.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 { 20 namespace {
21 21
22 void SetEventTarget(ui::EventTarget* target, ui::Event* event) { 22 void SetEventTarget(ui::EventTarget* target, ui::Event* event) {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 SetEventTarget(window.get(), &mouse_event); 214 SetEventTarget(window.get(), &mouse_event);
215 detector_->OnMouseEvent(&mouse_event); 215 detector_->OnMouseEvent(&mouse_event);
216 EXPECT_FALSE(mouse_event.handled()); 216 EXPECT_FALSE(mouse_event.handled());
217 EXPECT_EQ(base::TimeTicks().ToInternalValue(), 217 EXPECT_EQ(base::TimeTicks().ToInternalValue(),
218 detector_->last_activity_time().ToInternalValue()); 218 detector_->last_activity_time().ToInternalValue());
219 EXPECT_EQ(0, observer_->num_invocations()); 219 EXPECT_EQ(0, observer_->num_invocations());
220 } 220 }
221 221
222 } // namespace test 222 } // namespace test
223 } // namespace ash 223 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/user_activity_detector.h ('k') | ash/wm/video_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698