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

Side by Side Diff: ash/drag_drop/drag_drop_controller_unittest.cc

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/drag_drop/drag_drop_controller.h" 5 #include "ash/drag_drop/drag_drop_controller.h"
6 6
7 #include "ash/test/aura_shell_test_base.h" 7 #include "ash/test/aura_shell_test_base.h"
8 #include "ash/wm/root_window_event_filter.h" 8 #include "ash/wm/root_window_event_filter.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "ui/aura/event.h" 11 #include "ui/aura/event.h"
12 #include "ui/aura/root_window.h" 12 #include "ui/aura/root_window.h"
13 #include "ui/base/dragdrop/drag_drop_types.h" 13 #include "ui/base/dragdrop/drag_drop_types.h"
14 #include "ui/base/dragdrop/os_exchange_data.h" 14 #include "ui/base/dragdrop/os_exchange_data.h"
15 #include "ui/views/events/event.h" 15 #include "ui/views/events/event.h"
16 #include "ui/views/view.h" 16 #include "ui/views/view.h"
17 #include "ui/views/widget/widget.h" 17 #include "ui/views/widget/widget.h"
18 18
19 namespace aura_shell { 19 namespace ash {
20 namespace test { 20 namespace test {
21 21
22 namespace { 22 namespace {
23 23
24 // A simple view that makes sure RunShellDrag is invoked on mouse drag. 24 // A simple view that makes sure RunShellDrag is invoked on mouse drag.
25 class DragTestView : public views::View { 25 class DragTestView : public views::View {
26 public: 26 public:
27 DragTestView() : views::View() { 27 DragTestView() : views::View() {
28 Reset(); 28 Reset();
29 } 29 }
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 EXPECT_EQ(num_drags_1 - 1 - drag_view->VerticalDragThreshold(), 423 EXPECT_EQ(num_drags_1 - 1 - drag_view->VerticalDragThreshold(),
424 drag_view->num_drag_updates_); 424 drag_view->num_drag_updates_);
425 EXPECT_EQ(0, drag_view->num_drops_); 425 EXPECT_EQ(0, drag_view->num_drops_);
426 EXPECT_EQ(0, drag_view->num_drag_exits_); 426 EXPECT_EQ(0, drag_view->num_drag_exits_);
427 EXPECT_TRUE(drag_view->drag_done_received_); 427 EXPECT_TRUE(drag_view->drag_done_received_);
428 delete widget; 428 delete widget;
429 } 429 }
430 430
431 } // namespace test 431 } // namespace test
432 } // namespace aura 432 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698