| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_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" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/browser/renderer_host/mock_render_process_host.h" | 13 #include "content/browser/renderer_host/mock_render_process_host.h" |
| 14 #include "content/browser/renderer_host/render_view_host.h" | 14 #include "content/browser/renderer_host/render_view_host.h" |
| 15 #include "content/browser/renderer_host/render_view_host_factory.h" | 15 #include "content/browser/renderer_host/render_view_host_factory.h" |
| 16 #include "content/browser/renderer_host/render_widget_host_view.h" | 16 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 17 #include "content/public/common/page_transition_types.h" | 17 #include "content/public/common/page_transition_types.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 class NavigationController; |
| 21 |
| 20 namespace content { | 22 namespace content { |
| 21 class BrowserContext; | 23 class BrowserContext; |
| 22 class RenderProcessHostFactory; | 24 class RenderProcessHostFactory; |
| 23 } | 25 } |
| 24 | 26 |
| 25 namespace gfx { | 27 namespace gfx { |
| 26 class Rect; | 28 class Rect; |
| 27 } | 29 } |
| 28 | 30 |
| 29 class NavigationController; | |
| 30 class SiteInstance; | 31 class SiteInstance; |
| 31 class TestTabContents; | 32 class TestTabContents; |
| 32 struct ViewHostMsg_FrameNavigate_Params; | 33 struct ViewHostMsg_FrameNavigate_Params; |
| 33 | 34 |
| 34 // Utility function to initialize ViewHostMsg_NavigateParams_Params | 35 // Utility function to initialize ViewHostMsg_NavigateParams_Params |
| 35 // with given |page_id|, |url| and |transition_type|. | 36 // with given |page_id|, |url| and |transition_type|. |
| 36 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, | 37 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, |
| 37 int page_id, | 38 int page_id, |
| 38 const GURL& url, | 39 const GURL& url, |
| 39 content::PageTransition transition_type); | 40 content::PageTransition transition_type); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 MockRenderProcessHostFactory rph_factory_; | 337 MockRenderProcessHostFactory rph_factory_; |
| 337 TestRenderViewHostFactory rvh_factory_; | 338 TestRenderViewHostFactory rvh_factory_; |
| 338 | 339 |
| 339 private: | 340 private: |
| 340 scoped_ptr<TestTabContents> contents_; | 341 scoped_ptr<TestTabContents> contents_; |
| 341 | 342 |
| 342 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 343 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 343 }; | 344 }; |
| 344 | 345 |
| 345 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 346 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |