diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 05:04:09 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 05:04:09 +0000 |
commit | 458b365cd2b16aa7a7f5191a0040edd45b51a4d4 (patch) | |
tree | d618c03fbbf35d6a9776550943a393ffae3e389e /ui/aura_shell/drag_drop_controller_unittest.cc | |
parent | c6d03e02eccce9fc604f4803d8a073dbe29d5981 (diff) | |
download | chromium_src-458b365cd2b16aa7a7f5191a0040edd45b51a4d4.zip chromium_src-458b365cd2b16aa7a7f5191a0040edd45b51a4d4.tar.gz chromium_src-458b365cd2b16aa7a7f5191a0040edd45b51a4d4.tar.bz2 |
Rename WindowDragDropDelegate->DragDropDelegate
Move D&D client stuff into client namespace.
Provide some convenient getters/setters.
BUG=none
TEST=existing automation
TBR=sky
Review URL: http://codereview.chromium.org/8949010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura_shell/drag_drop_controller_unittest.cc')
-rw-r--r-- | ui/aura_shell/drag_drop_controller_unittest.cc | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/ui/aura_shell/drag_drop_controller_unittest.cc b/ui/aura_shell/drag_drop_controller_unittest.cc index 6ef90f0..f05ca81 100644 --- a/ui/aura_shell/drag_drop_controller_unittest.cc +++ b/ui/aura_shell/drag_drop_controller_unittest.cc @@ -172,27 +172,19 @@ void AddViewToWidgetAndResize(views::Widget* widget, views::View* view) { class DragDropControllerTest : public AuraShellTestBase { public: - DragDropControllerTest() : AuraShellTestBase() { - } - - virtual ~DragDropControllerTest() { - aura::RootWindow::GetInstance()->SetProperty( - aura::kRootWindowDragDropClientKey, - NULL); - } + DragDropControllerTest() : AuraShellTestBase() {} + virtual ~DragDropControllerTest() {} void SetUp() OVERRIDE { AuraShellTestBase::SetUp(); - drag_drop_controller_ = new TestDragDropController; + drag_drop_controller_.reset(new TestDragDropController); drag_drop_controller_->set_should_block_during_drag_drop(false); - aura::RootWindow::GetInstance()->SetProperty( - aura::kRootWindowDragDropClientKey, - drag_drop_controller_); + aura::client::SetDragDropClient(drag_drop_controller_.get()); } void TearDown() OVERRIDE { - delete drag_drop_controller_; - drag_drop_controller_ = NULL; + aura::client::SetDragDropClient(NULL); + drag_drop_controller_.reset(); AuraShellTestBase::TearDown(); } @@ -201,7 +193,7 @@ class DragDropControllerTest : public AuraShellTestBase { } protected: - TestDragDropController* drag_drop_controller_; + scoped_ptr<TestDragDropController> drag_drop_controller_; private: DISALLOW_COPY_AND_ASSIGN(DragDropControllerTest); |