OLD | NEW |
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_TEST_TEST_RENDERER_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDERER_HOST_H_ |
6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Calls the RenderViewHosts' private OnMessageReceived function with the | 60 // Calls the RenderViewHosts' private OnMessageReceived function with the |
61 // given message. | 61 // given message. |
62 static bool TestOnMessageReceived(RenderViewHost* rvh, | 62 static bool TestOnMessageReceived(RenderViewHost* rvh, |
63 const IPC::Message& msg); | 63 const IPC::Message& msg); |
64 | 64 |
65 virtual ~RenderViewHostTester() {} | 65 virtual ~RenderViewHostTester() {} |
66 | 66 |
67 // Gives tests access to RenderViewHostImpl::CreateRenderView. | 67 // Gives tests access to RenderViewHostImpl::CreateRenderView. |
68 virtual bool CreateRenderView(const string16& frame_name, | 68 virtual bool CreateRenderView(const string16& frame_name, |
| 69 int opener_route_id, |
69 int32 max_page_id) = 0; | 70 int32 max_page_id) = 0; |
70 | 71 |
71 // Calls OnMsgNavigate on the RenderViewHost with the given information, | 72 // Calls OnMsgNavigate on the RenderViewHost with the given information, |
72 // setting the rest of the parameters in the message to the "typical" values. | 73 // setting the rest of the parameters in the message to the "typical" values. |
73 // This is a helper function for simulating the most common types of loads. | 74 // This is a helper function for simulating the most common types of loads. |
74 virtual void SendNavigate(int page_id, const GURL& url) = 0; | 75 virtual void SendNavigate(int page_id, const GURL& url) = 0; |
75 | 76 |
76 // Calls OnMsgNavigate on the RenderViewHost with the given information, | 77 // Calls OnMsgNavigate on the RenderViewHost with the given information, |
77 // including a custom PageTransition. Sets the rest of the | 78 // including a custom PageTransition. Sets the rest of the |
78 // parameters in the message to the "typical" values. This is a helper | 79 // parameters in the message to the "typical" values. This is a helper |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; | 176 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; |
176 #endif | 177 #endif |
177 RenderViewHostTestEnabler rvh_test_enabler_; | 178 RenderViewHostTestEnabler rvh_test_enabler_; |
178 | 179 |
179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 180 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
180 }; | 181 }; |
181 | 182 |
182 } // namespace content | 183 } // namespace content |
183 | 184 |
184 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ | 185 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ |
OLD | NEW |