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

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

Issue 113591: Fix Acid3 Test 48: LINKTEST, Chromium side.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Made waiting more bearable. Created 11 years, 5 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) 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_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 class TestRenderViewHostFactory : public RenderViewHostFactory { 149 class TestRenderViewHostFactory : public RenderViewHostFactory {
150 public: 150 public:
151 TestRenderViewHostFactory(RenderProcessHostFactory* rph_factory) 151 TestRenderViewHostFactory(RenderProcessHostFactory* rph_factory)
152 : render_process_host_factory_(rph_factory) { 152 : render_process_host_factory_(rph_factory) {
153 RenderViewHostFactory::RegisterFactory(this); 153 RenderViewHostFactory::RegisterFactory(this);
154 } 154 }
155 virtual ~TestRenderViewHostFactory() { 155 virtual ~TestRenderViewHostFactory() {
156 RenderViewHostFactory::UnregisterFactory(); 156 RenderViewHostFactory::UnregisterFactory();
157 } 157 }
158 158
159 virtual void set_render_process_host_factory(
160 RenderProcessHostFactory* rph_factory) {
161 render_process_host_factory_ = rph_factory;
162 }
163
159 virtual RenderViewHost* CreateRenderViewHost( 164 virtual RenderViewHost* CreateRenderViewHost(
160 SiteInstance* instance, 165 SiteInstance* instance,
161 RenderViewHostDelegate* delegate, 166 RenderViewHostDelegate* delegate,
162 int routing_id, 167 int routing_id,
163 base::WaitableEvent* modal_dialog_event) { 168 base::WaitableEvent* modal_dialog_event) {
164 // See declaration of render_process_host_factory_ below. 169 // See declaration of render_process_host_factory_ below.
165 instance->set_render_process_host_factory(render_process_host_factory_); 170 instance->set_render_process_host_factory(render_process_host_factory_);
166 return new TestRenderViewHost(instance, delegate, routing_id, 171 return new TestRenderViewHost(instance, delegate, routing_id,
167 modal_dialog_event); 172 modal_dialog_event);
168 } 173 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 248
244 MockRenderProcessHostFactory rph_factory_; 249 MockRenderProcessHostFactory rph_factory_;
245 TestRenderViewHostFactory rvh_factory_; 250 TestRenderViewHostFactory rvh_factory_;
246 251
247 scoped_ptr<TestTabContents> contents_; 252 scoped_ptr<TestTabContents> contents_;
248 253
249 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 254 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
250 }; 255 };
251 256
252 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 257 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_process_host.h ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698