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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 int opener_route_id, |
70 int32 max_page_id) = 0; | 70 int32 max_page_id, |
| 71 int embedder_process_id) = 0; |
71 | 72 |
72 // Calls OnMsgNavigate on the RenderViewHost with the given information, | 73 // Calls OnMsgNavigate on the RenderViewHost with the given information, |
73 // setting the rest of the parameters in the message to the "typical" values. | 74 // setting the rest of the parameters in the message to the "typical" values. |
74 // This is a helper function for simulating the most common types of loads. | 75 // This is a helper function for simulating the most common types of loads. |
75 virtual void SendNavigate(int page_id, const GURL& url) = 0; | 76 virtual void SendNavigate(int page_id, const GURL& url) = 0; |
76 | 77 |
77 // Calls OnMsgNavigate on the RenderViewHost with the given information, | 78 // Calls OnMsgNavigate on the RenderViewHost with the given information, |
78 // including a custom PageTransition. Sets the rest of the | 79 // including a custom PageTransition. Sets the rest of the |
79 // parameters in the message to the "typical" values. This is a helper | 80 // parameters in the message to the "typical" values. This is a helper |
80 // function for simulating the most common types of loads. | 81 // function for simulating the most common types of loads. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; | 177 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; |
177 #endif | 178 #endif |
178 RenderViewHostTestEnabler rvh_test_enabler_; | 179 RenderViewHostTestEnabler rvh_test_enabler_; |
179 | 180 |
180 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 181 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
181 }; | 182 }; |
182 | 183 |
183 } // namespace content | 184 } // namespace content |
184 | 185 |
185 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ | 186 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ |
OLD | NEW |