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

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

Issue 10915304: We do not pass enums by conts references. This CL fixes style errors introduced (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 85 virtual void ShowContextMenu(
86 const content::ContextMenuParams& params, 86 const content::ContextMenuParams& params,
87 const content::ContextMenuSourceType& type) OVERRIDE {} 87 content::ContextMenuSourceType type) OVERRIDE {}
88 virtual void ShowPopupMenu(const gfx::Rect& bounds, 88 virtual void ShowPopupMenu(const gfx::Rect& bounds,
89 int item_height, 89 int item_height,
90 double item_font_size, 90 double item_font_size,
91 int selected_item, 91 int selected_item,
92 const std::vector<WebMenuItem>& items, 92 const std::vector<WebMenuItem>& items,
93 bool right_aligned, 93 bool right_aligned,
94 bool allow_multiple_selection) OVERRIDE {} 94 bool allow_multiple_selection) OVERRIDE {}
95 virtual void StartDragging(const WebDropData& drop_data, 95 virtual void StartDragging(const WebDropData& drop_data,
96 WebKit::WebDragOperationsMask allowed_ops, 96 WebKit::WebDragOperationsMask allowed_ops,
97 const gfx::ImageSkia& image, 97 const gfx::ImageSkia& image,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // the code actually expects it to have at least one int para, this this 217 // the code actually expects it to have at least one int para, this this
218 // bogus message will not fail at de-serialization but should fail in 218 // bogus message will not fail at de-serialization but should fail in
219 // OnMsgInputEventAck() processing. 219 // OnMsgInputEventAck() processing.
220 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, 220 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID,
221 IPC::Message::PRIORITY_NORMAL); 221 IPC::Message::PRIORITY_NORMAL);
222 test_rvh()->OnMessageReceived(message); 222 test_rvh()->OnMessageReceived(message);
223 EXPECT_EQ(1, process()->bad_msg_count()); 223 EXPECT_EQ(1, process()->bad_msg_count());
224 } 224 }
225 225
226 #endif 226 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.h ('k') | content/browser/web_contents/interstitial_page_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698