summaryrefslogtreecommitdiffstats
path: root/ash/drag_drop
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-27 06:02:06 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-27 06:02:06 +0000
commitd9dd3a9d3d7b77928a64d522a9d3504d71682fec (patch)
treedf4126f2d76790c60c436c6e4ac86b825d4cd664 /ash/drag_drop
parent454b3377b8945d39ee501f1a804322fee43c4144 (diff)
downloadchromium_src-d9dd3a9d3d7b77928a64d522a9d3504d71682fec.zip
chromium_src-d9dd3a9d3d7b77928a64d522a9d3504d71682fec.tar.gz
chromium_src-d9dd3a9d3d7b77928a64d522a9d3504d71682fec.tar.bz2
Fix leaks in ash/aura unittests
BUG=none TEST=run valgrind tests locally TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/11276059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/drag_drop')
-rw-r--r--ash/drag_drop/drag_drop_controller_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/drag_drop/drag_drop_controller_unittest.cc b/ash/drag_drop/drag_drop_controller_unittest.cc
index bbc3975..92cc1aa 100644
--- a/ash/drag_drop/drag_drop_controller_unittest.cc
+++ b/ash/drag_drop/drag_drop_controller_unittest.cc
@@ -535,6 +535,9 @@ TEST_F(DragDropControllerTest, DragLeavesClipboardAloneTest) {
ui::Clipboard::BUFFER_STANDARD));
cb->ReadAsciiText(ui::Clipboard::BUFFER_STANDARD, &result);
EXPECT_EQ(clip_str, result);
+ // Destory the clipboard here because ash doesn't delete it.
+ // crbug.com/158150.
+ ui::Clipboard::DestroyClipboardForCurrentThread();
}
TEST_F(DragDropControllerTest, WindowDestroyedDuringDragDrop) {