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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 virtual void SimulateWasHidden() OVERRIDE; | 239 virtual void SimulateWasHidden() OVERRIDE; |
240 virtual void SimulateWasShown() OVERRIDE; | 240 virtual void SimulateWasShown() OVERRIDE; |
241 | 241 |
242 // Calls OnNavigate on the RenderViewHost with the given information, | 242 // Calls OnNavigate on the RenderViewHost with the given information, |
243 // including a custom original request URL. Sets the rest of the | 243 // including a custom original request URL. Sets the rest of the |
244 // parameters in the message to the "typical" values. This is a helper | 244 // parameters in the message to the "typical" values. This is a helper |
245 // function for simulating the most common types of loads. | 245 // function for simulating the most common types of loads. |
246 void SendNavigateWithOriginalRequestURL( | 246 void SendNavigateWithOriginalRequestURL( |
247 int page_id, const GURL& url, const GURL& original_request_url); | 247 int page_id, const GURL& url, const GURL& original_request_url); |
248 | 248 |
249 | 249 void TestOnUpdateStateWithFile(int process_id, const std::string& file_name); |
250 void TestOnStartDragging(const WebDropData& drop_data); | 250 void TestOnStartDragging(const WebDropData& drop_data); |
251 | 251 |
252 // If set, *delete_counter is incremented when this object destructs. | 252 // If set, *delete_counter is incremented when this object destructs. |
253 void set_delete_counter(int* delete_counter) { | 253 void set_delete_counter(int* delete_counter) { |
254 delete_counter_ = delete_counter; | 254 delete_counter_ = delete_counter; |
255 } | 255 } |
256 | 256 |
257 // Sets whether the RenderView currently exists or not. This controls the | 257 // Sets whether the RenderView currently exists or not. This controls the |
258 // return value from IsRenderViewLive, which the rest of the system uses to | 258 // return value from IsRenderViewLive, which the rest of the system uses to |
259 // check whether the RenderView has crashed or not. | 259 // check whether the RenderView has crashed or not. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 TestRenderViewHost* active_test_rvh(); | 348 TestRenderViewHost* active_test_rvh(); |
349 TestWebContents* contents(); | 349 TestWebContents* contents(); |
350 | 350 |
351 private: | 351 private: |
352 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 352 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
353 }; | 353 }; |
354 | 354 |
355 } // namespace content | 355 } // namespace content |
356 | 356 |
357 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 357 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |