summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r--chrome/browser/cocoa/download_util_mac_unittest.mm2
-rw-r--r--chrome/browser/cocoa/web_drop_target_unittest.mm5
2 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/download_util_mac_unittest.mm b/chrome/browser/cocoa/download_util_mac_unittest.mm
index 4369275..0f61704 100644
--- a/chrome/browser/cocoa/download_util_mac_unittest.mm
+++ b/chrome/browser/cocoa/download_util_mac_unittest.mm
@@ -44,6 +44,8 @@ TEST_F(DownloadUtilTest, AddFileToPasteboardTest) {
NSString* expectedPath = [files objectAtIndex:0];
NSString* realPath = base::SysWideToNSString(testPath.ToWStringHack());
EXPECT_TRUE([expectedPath isEqualToString:realPath]);
+
+ [pasteboard releaseGlobally];
}
} // namespace
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) {