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

Unified Diff: ui/aura_shell/drag_drop_controller_unittest.cc

Issue 8949010: Rename WindowDragDropDelegate->DragDropDelegate (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura_shell/drag_drop_controller.cc ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/drag_drop_controller_unittest.cc
===================================================================
--- ui/aura_shell/drag_drop_controller_unittest.cc (revision 114593)
+++ ui/aura_shell/drag_drop_controller_unittest.cc (working copy)
@@ -172,27 +172,19 @@
class DragDropControllerTest : public AuraShellTestBase {
public:
- DragDropControllerTest() : AuraShellTestBase() {
- }
+ DragDropControllerTest() : AuraShellTestBase() {}
+ virtual ~DragDropControllerTest() {}
- virtual ~DragDropControllerTest() {
- aura::RootWindow::GetInstance()->SetProperty(
- aura::kRootWindowDragDropClientKey,
- NULL);
- }
-
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 @@
}
protected:
- TestDragDropController* drag_drop_controller_;
+ scoped_ptr<TestDragDropController> drag_drop_controller_;
private:
DISALLOW_COPY_AND_ASSIGN(DragDropControllerTest);
« no previous file with comments | « ui/aura_shell/drag_drop_controller.cc ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698