| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int flags); | 49 int flags); |
| 50 ~TestRenderFrameHost() override; | 50 ~TestRenderFrameHost() override; |
| 51 | 51 |
| 52 // RenderFrameHostImpl overrides (same values, but in Test*/Mock* types) | 52 // RenderFrameHostImpl overrides (same values, but in Test*/Mock* types) |
| 53 TestRenderViewHost* GetRenderViewHost() override; | 53 TestRenderViewHost* GetRenderViewHost() override; |
| 54 MockRenderProcessHost* GetProcess() override; | 54 MockRenderProcessHost* GetProcess() override; |
| 55 | 55 |
| 56 // RenderFrameHostTester implementation. | 56 // RenderFrameHostTester implementation. |
| 57 void InitializeRenderFrameIfNeeded() override; | 57 void InitializeRenderFrameIfNeeded() override; |
| 58 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; | 58 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; |
| 59 void Detach() override; |
| 59 void SimulateNavigationStart(const GURL& url) override; | 60 void SimulateNavigationStart(const GURL& url) override; |
| 60 void SimulateRedirect(const GURL& new_url) override; | 61 void SimulateRedirect(const GURL& new_url) override; |
| 61 void SimulateNavigationCommit(const GURL& url) override; | 62 void SimulateNavigationCommit(const GURL& url) override; |
| 62 void SimulateNavigationError(const GURL& url, int error_code) override; | 63 void SimulateNavigationError(const GURL& url, int error_code) override; |
| 63 void SimulateNavigationErrorPageCommit() override; | 64 void SimulateNavigationErrorPageCommit() override; |
| 64 void SimulateNavigationStop() override; | 65 void SimulateNavigationStop() override; |
| 65 void SendNavigate(int page_id, | 66 void SendNavigate(int page_id, |
| 66 int nav_entry_id, | 67 int nav_entry_id, |
| 67 bool did_create_new_entry, | 68 bool did_create_new_entry, |
| 68 const GURL& url) override; | 69 const GURL& url) override; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 149 |
| 149 // See set_simulate_history_list_was_cleared() above. | 150 // See set_simulate_history_list_was_cleared() above. |
| 150 bool simulate_history_list_was_cleared_; | 151 bool simulate_history_list_was_cleared_; |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 153 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace content | 156 } // namespace content |
| 156 | 157 |
| 157 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 158 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |