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

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

Issue 10436010: Multi-select <select> in 'external popup window' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after reverts and re-reverts.. Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "content/browser/child_process_security_policy_impl.h" 6 #include "content/browser/child_process_security_policy_impl.h"
7 #include "content/browser/renderer_host/test_render_view_host.h" 7 #include "content/browser/renderer_host/test_render_view_host.h"
8 #include "content/browser/web_contents/navigation_controller_impl.h" 8 #include "content/browser/web_contents/navigation_controller_impl.h"
9 #include "content/browser/web_contents/test_web_contents.h" 9 #include "content/browser/web_contents/test_web_contents.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 rvh()->AllowBindings(content::BINDINGS_POLICY_WEB_UI); 77 rvh()->AllowBindings(content::BINDINGS_POLICY_WEB_UI);
78 EXPECT_FALSE(rvh()->GetEnabledBindings() & content::BINDINGS_POLICY_WEB_UI); 78 EXPECT_FALSE(rvh()->GetEnabledBindings() & content::BINDINGS_POLICY_WEB_UI);
79 } 79 }
80 80
81 class MockDraggingRenderViewHostDelegateView 81 class MockDraggingRenderViewHostDelegateView
82 : public content::RenderViewHostDelegateView { 82 : public content::RenderViewHostDelegateView {
83 public: 83 public:
84 virtual ~MockDraggingRenderViewHostDelegateView() {} 84 virtual ~MockDraggingRenderViewHostDelegateView() {}
85 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} 85 virtual void ShowContextMenu(const content::ContextMenuParams& params) {}
86 virtual void ShowPopupMenu(const gfx::Rect& bounds,
87 int item_height,
88 double item_font_size,
89 int selected_item,
90 const std::vector<WebMenuItem>& items,
91 bool right_aligned,
92 bool allow_multiple_selection) {}
86 virtual void StartDragging(const WebDropData& drop_data, 93 virtual void StartDragging(const WebDropData& drop_data,
87 WebKit::WebDragOperationsMask allowed_ops, 94 WebKit::WebDragOperationsMask allowed_ops,
88 const SkBitmap& image, 95 const SkBitmap& image,
89 const gfx::Point& image_offset) { 96 const gfx::Point& image_offset) {
90 drag_url_ = drop_data.url; 97 drag_url_ = drop_data.url;
91 html_base_url_ = drop_data.html_base_url; 98 html_base_url_ = drop_data.html_base_url;
92 } 99 }
93 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} 100 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {}
94 virtual void GotFocus() {} 101 virtual void GotFocus() {}
95 virtual void TakeFocus(bool reverse) {} 102 virtual void TakeFocus(bool reverse) {}
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // the code actually expects it to have at least one int para, this this 209 // the code actually expects it to have at least one int para, this this
203 // bogus message will not fail at de-serialization but should fail in 210 // bogus message will not fail at de-serialization but should fail in
204 // OnMsgInputEventAck() processing. 211 // OnMsgInputEventAck() processing.
205 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, 212 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID,
206 IPC::Message::PRIORITY_NORMAL); 213 IPC::Message::PRIORITY_NORMAL);
207 test_rvh()->OnMessageReceived(message); 214 test_rvh()->OnMessageReceived(message);
208 EXPECT_EQ(1, process()->bad_msg_count()); 215 EXPECT_EQ(1, process()->bad_msg_count());
209 } 216 }
210 217
211 #endif 218 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698