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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 public: 159 public:
160 TestRenderViewHost(SiteInstance* instance, 160 TestRenderViewHost(SiteInstance* instance,
161 RenderViewHostDelegate* delegate, 161 RenderViewHostDelegate* delegate,
162 int routing_id); 162 int routing_id);
163 virtual ~TestRenderViewHost(); 163 virtual ~TestRenderViewHost();
164 164
165 // Testing functions --------------------------------------------------------- 165 // Testing functions ---------------------------------------------------------
166 166
167 // Calls the RenderViewHosts' private OnMessageReceived function with the 167 // Calls the RenderViewHosts' private OnMessageReceived function with the
168 // given message. 168 // given message.
169 void TestOnMessageReceived(const IPC::Message& msg); 169 bool TestOnMessageReceived(const IPC::Message& msg);
170 170
171 // Calls OnMsgNavigate on the RenderViewHost with the given information, 171 // Calls OnMsgNavigate on the RenderViewHost with the given information,
172 // setting the rest of the parameters in the message to the "typical" values. 172 // setting the rest of the parameters in the message to the "typical" values.
173 // This is a helper function for simulating the most common types of loads. 173 // This is a helper function for simulating the most common types of loads.
174 void SendNavigate(int page_id, const GURL& url); 174 void SendNavigate(int page_id, const GURL& url);
175 175
176 // Calls OnMsgNavigate on the RenderViewHost with the given information, 176 // Calls OnMsgNavigate on the RenderViewHost with the given information,
177 // including a custom PageTransition::Type. Sets the rest of the parameters 177 // including a custom PageTransition::Type. Sets the rest of the parameters
178 // in the message to the "typical" values. 178 // in the message to the "typical" values.
179 // This is a helper function for simulating the most common types of loads. 179 // This is a helper function for simulating the most common types of loads.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 MockRenderProcessHostFactory rph_factory_; 291 MockRenderProcessHostFactory rph_factory_;
292 TestRenderViewHostFactory rvh_factory_; 292 TestRenderViewHostFactory rvh_factory_;
293 293
294 scoped_ptr<TestTabContents> contents_; 294 scoped_ptr<TestTabContents> contents_;
295 295
296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
297 }; 297 };
298 298
299 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 299 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698