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

Unified Diff: chrome/browser/cocoa/web_drop_target_unittest.mm

Issue 192061: Attempt to fix memory leak in some mac tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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 | « chrome/browser/cocoa/download_util_mac_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/web_drop_target_unittest.mm
===================================================================
--- chrome/browser/cocoa/web_drop_target_unittest.mm (revision 25834)
+++ chrome/browser/cocoa/web_drop_target_unittest.mm (working copy)
@@ -66,6 +66,7 @@
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 @@
[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 @@
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) {
« no previous file with comments | « chrome/browser/cocoa/download_util_mac_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698