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

Unified Diff: ash/wm/user_activity_detector_unittest.cc

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/toplevel_window_event_handler_unittest.cc ('k') | ash/wm/video_detector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8213677e280a60785074dba66a8b8ace972c1bf7..14c48a1a1d602e9a7e907eb32f2991682394ab9f 100644
--- a/ash/wm/user_activity_detector_unittest.cc
+++ b/ash/wm/user_activity_detector_unittest.cc
@@ -88,8 +88,7 @@ class UserActivityDetectorTest : public AshTestBase {
// Checks that the observer is notified in response to different types of input
// events.
TEST_F(UserActivityDetectorTest, Basic) {
- scoped_ptr<aura::Window> window(
- aura::test::CreateTestWindowWithId(12345, NULL));
+ scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(12345));
ui::KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE, false);
SetEventTarget(window.get(), &key_event);
@@ -135,8 +134,7 @@ TEST_F(UserActivityDetectorTest, Basic) {
// Checks that observers aren't notified too frequently.
TEST_F(UserActivityDetectorTest, RateLimitNotifications) {
- scoped_ptr<aura::Window> window(
- aura::test::CreateTestWindowWithId(12345, NULL));
+ scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(12345));
// The observer should be notified about a key event.
ui::KeyEvent event(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE, false);
@@ -170,8 +168,7 @@ TEST_F(UserActivityDetectorTest, RateLimitNotifications) {
// Checks that the detector ignores synthetic mouse events.
TEST_F(UserActivityDetectorTest, IgnoreSyntheticMouseEvents) {
- scoped_ptr<aura::Window> window(
- aura::test::CreateTestWindowWithId(12345, NULL));
+ scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(12345));
ui::MouseEvent mouse_event(
ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), ui::EF_IS_SYNTHESIZED);
SetEventTarget(window.get(), &mouse_event);
« no previous file with comments | « ash/wm/toplevel_window_event_handler_unittest.cc ('k') | ash/wm/video_detector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698