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

Unified Diff: content/browser/web_contents/web_drag_dest_mac_unittest.mm

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 6 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 | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/browser/web_contents/web_drag_dest_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_drag_dest_mac_unittest.mm
diff --git a/content/browser/web_contents/web_drag_dest_mac_unittest.mm b/content/browser/web_contents/web_drag_dest_mac_unittest.mm
index 028f13765ddb34f7f36ad304bee4ea52f5712dd0..48719de7b75c62015d7131d64f04a4a63840ddd8 100644
--- a/content/browser/web_contents/web_drag_dest_mac_unittest.mm
+++ b/content/browser/web_contents/web_drag_dest_mac_unittest.mm
@@ -8,13 +8,14 @@
#include "base/strings/utf_string_conversions.h"
#include "content/browser/renderer_host/test_render_view_host.h"
#import "content/browser/web_contents/web_drag_dest_mac.h"
+#include "content/public/common/drop_data.h"
#include "content/test/test_web_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
#import "third_party/mozilla/NSPasteboard+Utils.h"
#import "ui/base/dragdrop/cocoa_dnd_util.h"
#import "ui/base/test/ui_cocoa_test_helper.h"
-#include "webkit/common/webdropdata.h"
+using content::DropData;
using content::RenderViewHostImplTestHarness;
namespace {
@@ -144,7 +145,7 @@ TEST_F(WebDragDestTest, URL) {
}
TEST_F(WebDragDestTest, Data) {
- WebDropData data;
+ DropData data;
NSPasteboard* pboard = [NSPasteboard pasteboardWithUniqueName];
PutURLOnPasteboard(@"http://www.google.com", pboard);
@@ -155,7 +156,7 @@ TEST_F(WebDragDestTest, Data) {
NSString* textString = @"hi there";
[pboard setString:htmlString forType:NSHTMLPboardType];
[pboard setString:textString forType:NSStringPboardType];
- [drag_dest_ populateWebDropData:&data fromPasteboard:pboard];
+ [drag_dest_ populateDropData:&data fromPasteboard:pboard];
EXPECT_EQ(data.url.spec(), "http://www.google.com/");
EXPECT_EQ(base::SysNSStringToUTF16(textString), data.text.string());
EXPECT_EQ(base::SysNSStringToUTF16(htmlString), data.html.string());
« no previous file with comments | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/browser/web_contents/web_drag_dest_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698