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

Unified Diff: content/browser/renderer_host/render_view_host_unittest.cc

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
Index: content/browser/renderer_host/render_view_host_unittest.cc
diff --git a/content/browser/renderer_host/render_view_host_unittest.cc b/content/browser/renderer_host/render_view_host_unittest.cc
index 2dc55582e691df9c5e0e26830e47aaa4406df0da..dca3da8205e97345b1a0efe2b7239c3457f70ab0 100644
--- a/content/browser/renderer_host/render_view_host_unittest.cc
+++ b/content/browser/renderer_host/render_view_host_unittest.cc
@@ -12,6 +12,7 @@
#include "content/port/browser/render_view_host_delegate_view.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/common/bindings_policy.h"
+#include "content/public/common/drop_data.h"
#include "content/public/common/page_transition_types.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/mock_render_process_host.h"
@@ -19,7 +20,6 @@
#include "content/test/test_web_contents.h"
#include "net/base/net_util.h"
#include "third_party/WebKit/public/web/WebDragOperation.h"
-#include "webkit/common/webdropdata.h"
namespace content {
@@ -125,7 +125,7 @@ class MockDraggingRenderViewHostDelegateView
const std::vector<WebMenuItem>& items,
bool right_aligned,
bool allow_multiple_selection) OVERRIDE {}
- virtual void StartDragging(const WebDropData& drop_data,
+ virtual void StartDragging(const DropData& drop_data,
WebKit::WebDragOperationsMask allowed_ops,
const gfx::ImageSkia& image,
const gfx::Vector2d& image_offset,
@@ -156,7 +156,7 @@ TEST_F(RenderViewHostTest, StartDragging) {
MockDraggingRenderViewHostDelegateView delegate_view;
web_contents->set_delegate_view(&delegate_view);
- WebDropData drop_data;
+ DropData drop_data;
GURL file_url = GURL("file:///home/user/secrets.txt");
drop_data.url = file_url;
drop_data.html_base_url = file_url;
@@ -187,7 +187,7 @@ TEST_F(RenderViewHostTest, StartDragging) {
}
TEST_F(RenderViewHostTest, DragEnteredFileURLsStillBlocked) {
- WebDropData dropped_data;
+ DropData dropped_data;
gfx::Point client_point;
gfx::Point screen_point;
// We use "//foo/bar" path (rather than "/foo/bar") since dragged paths are
@@ -199,7 +199,7 @@ TEST_F(RenderViewHostTest, DragEnteredFileURLsStillBlocked) {
GURL dragged_file_url = net::FilePathToFileURL(dragged_file_path);
GURL sensitive_file_url = net::FilePathToFileURL(sensitive_file_path);
dropped_data.url = highlighted_file_url;
- dropped_data.filenames.push_back(WebDropData::FileInfo(
+ dropped_data.filenames.push_back(DropData::FileInfo(
UTF8ToUTF16(dragged_file_path.AsUTF8Unsafe()), string16()));
rvh()->DragTargetDragEnter(dropped_data, client_point, screen_point,
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698