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

Side by Side Diff: ash/wm/gestures/overview_gesture_handler_unittest.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/gestures/overview_gesture_handler.cc ('k') | ash/wm/gestures/shelf_gesture_handler.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 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/root_window_controller.h" 5 #include "ash/root_window_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 "ash/wm/overview/window_selector_controller.h" 8 #include "ash/wm/overview/window_selector_controller.h"
9 #include "ui/aura/test/event_generator.h" 9 #include "ui/aura/test/event_generator.h"
10 #include "ui/aura/test/test_window_delegate.h" 10 #include "ui/aura/test/test_window_delegate.h"
11 #include "ui/aura/test/test_windows.h" 11 #include "ui/aura/test/test_windows.h"
12 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
13 #include "ui/aura/window_event_dispatcher.h" 13 #include "ui/aura/window_event_dispatcher.h"
14 14
15 namespace ash { 15 namespace ash {
16 namespace internal {
17 16
18 class OverviewGestureHandlerTest : public test::AshTestBase { 17 class OverviewGestureHandlerTest : public test::AshTestBase {
19 public: 18 public:
20 OverviewGestureHandlerTest() {} 19 OverviewGestureHandlerTest() {}
21 virtual ~OverviewGestureHandlerTest() {} 20 virtual ~OverviewGestureHandlerTest() {}
22 21
23 aura::Window* CreateWindow(const gfx::Rect& bounds) { 22 aura::Window* CreateWindow(const gfx::Rect& bounds) {
24 return CreateTestWindowInShellWithDelegate(&delegate_, -1, bounds); 23 return CreateTestWindowInShellWithDelegate(&delegate_, -1, bounds);
25 } 24 }
26 25
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 aura::Window* root_window = Shell::GetPrimaryRootWindow(); 162 aura::Window* root_window = Shell::GetPrimaryRootWindow();
164 scoped_ptr<aura::Window> window1(CreateWindow(bounds)); 163 scoped_ptr<aura::Window> window1(CreateWindow(bounds));
165 scoped_ptr<aura::Window> window2(CreateWindow(bounds)); 164 scoped_ptr<aura::Window> window2(CreateWindow(bounds));
166 aura::test::EventGenerator generator(root_window, window2.get()); 165 aura::test::EventGenerator generator(root_window, window2.get());
167 gfx::Point start_points[3]; 166 gfx::Point start_points[3];
168 start_points[0] = start_points[1] = start_points[2] = gfx::Point(105, 105); 167 start_points[0] = start_points[1] = start_points[2] = gfx::Point(105, 105);
169 generator.GestureMultiFingerScroll(3, start_points, 5, 10, 0, 100); 168 generator.GestureMultiFingerScroll(3, start_points, 5, 10, 0, 100);
170 EXPECT_FALSE(IsSelecting()); 169 EXPECT_FALSE(IsSelecting());
171 } 170 }
172 171
173 } // namespace internal
174 } // namespace ash 172 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/gestures/overview_gesture_handler.cc ('k') | ash/wm/gestures/shelf_gesture_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698