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

Side by Side Diff: content/browser/renderer_host/render_view_host_unittest.cc

Issue 1888773003: Merge DragClientImpl into core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing file. Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
11 #include "content/browser/frame_host/render_frame_host_impl.h" 11 #include "content/browser/frame_host/render_frame_host_impl.h"
12 #include "content/browser/renderer_host/render_message_filter.h" 12 #include "content/browser/renderer_host/render_message_filter.h"
13 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 13 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
14 #include "content/browser/renderer_host/render_widget_helper.h" 14 #include "content/browser/renderer_host/render_widget_helper.h"
15 #include "content/common/frame_messages.h" 15 #include "content/common/frame_messages.h"
16 #include "content/common/input_messages.h" 16 #include "content/common/input_messages.h"
17 #include "content/common/view_messages.h" 17 #include "content/common/view_messages.h"
18 #include "content/public/browser/browser_context.h" 18 #include "content/public/browser/browser_context.h"
19 #include "content/public/browser/navigation_entry.h" 19 #include "content/public/browser/navigation_entry.h"
20 #include "content/public/browser/storage_partition.h" 20 #include "content/public/browser/storage_partition.h"
21 #include "content/public/common/bindings_policy.h" 21 #include "content/public/common/bindings_policy.h"
22 #include "content/public/common/drop_data.h" 22 #include "content/public/common/drop_data.h"
23 #include "content/public/common/url_constants.h" 23 #include "content/public/common/url_constants.h"
24 #include "content/public/test/mock_render_process_host.h" 24 #include "content/public/test/mock_render_process_host.h"
25 #include "content/test/test_content_browser_client.h" 25 #include "content/test/test_content_browser_client.h"
26 #include "content/test/test_render_view_host.h" 26 #include "content/test/test_render_view_host.h"
27 #include "content/test/test_web_contents.h" 27 #include "content/test/test_web_contents.h"
28 #include "net/base/filename_util.h" 28 #include "net/base/filename_util.h"
29 #include "third_party/WebKit/public/web/WebDragOperation.h" 29 #include "third_party/WebKit/public/platform/WebDragOperation.h"
30 #include "ui/base/page_transition_types.h" 30 #include "ui/base/page_transition_types.h"
31 31
32 namespace content { 32 namespace content {
33 33
34 class RenderViewHostTestBrowserClient : public TestContentBrowserClient { 34 class RenderViewHostTestBrowserClient : public TestContentBrowserClient {
35 public: 35 public:
36 RenderViewHostTestBrowserClient() {} 36 RenderViewHostTestBrowserClient() {}
37 ~RenderViewHostTestBrowserClient() override {} 37 ~RenderViewHostTestBrowserClient() override {}
38 38
39 bool IsHandledURL(const GURL& url) override { 39 bool IsHandledURL(const GURL& url) override {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 const std::string data_url = "data:image/gif;base64," 304 const std::string data_url = "data:image/gif;base64,"
305 "R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="; 305 "R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";
306 306
307 tester->Reset(); 307 tester->Reset();
308 tester->Test(data_url); 308 tester->Test(data_url);
309 EXPECT_EQ(tester->UrlString(), data_url); 309 EXPECT_EQ(tester->UrlString(), data_url);
310 EXPECT_TRUE(tester->IsDownloaded()); 310 EXPECT_TRUE(tester->IsDownloaded());
311 } 311 }
312 312
313 } // namespace content 313 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698