summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/web_drop_target_unittest.mm
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 18:25:50 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 18:25:50 +0000
commitf30158050f9ca26d9df35964e6f9501e1616aac5 (patch)
tree4ed74441dd163aab84e2fc3d05bb11a63a8b4cd2 /chrome/browser/cocoa/web_drop_target_unittest.mm
parentdd5e829ccd6f29b134b336603fd85edd0dd81269 (diff)
downloadchromium_src-f30158050f9ca26d9df35964e6f9501e1616aac5.zip
chromium_src-f30158050f9ca26d9df35964e6f9501e1616aac5.tar.gz
chromium_src-f30158050f9ca26d9df35964e6f9501e1616aac5.tar.bz2
Attempt to fix memory leak in some mac tests.
Review URL: http://codereview.chromium.org/192061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/web_drop_target_unittest.mm')
-rw-r--r--chrome/browser/cocoa/web_drop_target_unittest.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/web_drop_target_unittest.mm b/chrome/browser/cocoa/web_drop_target_unittest.mm
index c1f174c..7dd02de 100644
--- a/chrome/browser/cocoa/web_drop_target_unittest.mm
+++ b/chrome/browser/cocoa/web_drop_target_unittest.mm
@@ -66,6 +66,7 @@ TEST_F(WebDropTargetTest, URL) {
PutURLOnPasteboard(@"http://www.google.com", pboard);
[drop_target_ populateURLAndTitle:&data fromPasteboard:pboard];
EXPECT_EQ(data.url.spec(), "http://www.google.com/");
+ [pboard releaseGlobally];
// Put a 'url ' and 'urln' on the pasteboard and check it.
NSString* title = @"Title of Awesomeness!";
@@ -80,6 +81,8 @@ TEST_F(WebDropTargetTest, URL) {
[drop_target_ populateURLAndTitle:&data fromPasteboard:pboard];
EXPECT_EQ(data.url.spec(), "http://www.something.com/");
EXPECT_EQ(data.url_title, base::SysNSStringToUTF16(title));
+
+ [pboard releaseGlobally];
}
TEST_F(WebDropTargetTest, Data) {
@@ -98,6 +101,8 @@ TEST_F(WebDropTargetTest, Data) {
EXPECT_EQ(data.url.spec(), "http://www.google.com/");
EXPECT_EQ(data.plain_text, base::SysNSStringToUTF16(textString));
EXPECT_EQ(data.text_html, base::SysNSStringToUTF16(htmlString));
+
+ [pboard releaseGlobally];
}
TEST_F(WebDropTargetTest, EnterExitDrop) {