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

Side by Side Diff: content/public/test/test_renderer_host.h

Issue 803873004: ContentBrowserSanityChecker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jiggle the comments. Created 5 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
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 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 } 24 }
25 25
26 namespace ui { 26 namespace ui {
27 class ScopedOleInitializer; 27 class ScopedOleInitializer;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 31
32 class BrowserContext; 32 class BrowserContext;
33 class ContentBrowserSanityChecker;
33 class MockRenderProcessHost; 34 class MockRenderProcessHost;
34 class MockRenderProcessHostFactory; 35 class MockRenderProcessHostFactory;
35 class NavigationController; 36 class NavigationController;
36 class RenderProcessHostFactory; 37 class RenderProcessHostFactory;
37 class RenderViewHostDelegate; 38 class RenderViewHostDelegate;
38 class TestRenderFrameHostFactory; 39 class TestRenderFrameHostFactory;
39 class TestRenderViewHostFactory; 40 class TestRenderViewHostFactory;
40 class WebContents; 41 class WebContents;
41 42
42 // An interface and utility for driving tests of RenderFrameHost. 43 // An interface and utility for driving tests of RenderFrameHost.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 TestBrowserThreadBundle* thread_bundle() { return thread_bundle_.get(); } 220 TestBrowserThreadBundle* thread_bundle() { return thread_bundle_.get(); }
220 221
221 #if defined(USE_AURA) 222 #if defined(USE_AURA)
222 aura::Window* root_window() { return aura_test_helper_->root_window(); } 223 aura::Window* root_window() { return aura_test_helper_->root_window(); }
223 #endif 224 #endif
224 225
225 // Replaces the RPH being used. 226 // Replaces the RPH being used.
226 void SetRenderProcessHostFactory(RenderProcessHostFactory* factory); 227 void SetRenderProcessHostFactory(RenderProcessHostFactory* factory);
227 228
228 private: 229 private:
230 scoped_ptr<ContentBrowserSanityChecker> sanity_checker_;
231
229 scoped_ptr<BrowserContext> browser_context_; 232 scoped_ptr<BrowserContext> browser_context_;
230 233
231 scoped_ptr<WebContents> contents_; 234 scoped_ptr<WebContents> contents_;
232 #if defined(OS_WIN) 235 #if defined(OS_WIN)
233 scoped_ptr<ui::ScopedOleInitializer> ole_initializer_; 236 scoped_ptr<ui::ScopedOleInitializer> ole_initializer_;
234 #endif 237 #endif
235 #if defined(USE_AURA) 238 #if defined(USE_AURA)
236 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; 239 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_;
237 #endif 240 #endif
238 RenderViewHostTestEnabler rvh_test_enabler_; 241 RenderViewHostTestEnabler rvh_test_enabler_;
239 242
240 int thread_bundle_options_; 243 int thread_bundle_options_;
241 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; 244 scoped_ptr<TestBrowserThreadBundle> thread_bundle_;
242 245
243 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 246 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
244 }; 247 };
245 248
246 } // namespace content 249 } // namespace content
247 250
248 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 251 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698