Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: content/test/test_render_frame_host.h

Issue 1156023006: Bring RFH/RVH unit tests closer to reality of how RF/RV are initialized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move InitializeRenderFrameIfNeeded to RenderFrameHostTester and fix RlzLibTest code. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 FrameTreeNode* frame_tree_node, 44 FrameTreeNode* frame_tree_node,
45 int routing_id, 45 int routing_id,
46 int flags); 46 int flags);
47 ~TestRenderFrameHost() override; 47 ~TestRenderFrameHost() override;
48 48
49 // RenderFrameHostImpl overrides (same values, but in Test*/Mock* types) 49 // RenderFrameHostImpl overrides (same values, but in Test*/Mock* types)
50 TestRenderViewHost* GetRenderViewHost() override; 50 TestRenderViewHost* GetRenderViewHost() override;
51 MockRenderProcessHost* GetProcess() override; 51 MockRenderProcessHost* GetProcess() override;
52 52
53 // RenderFrameHostTester implementation. 53 // RenderFrameHostTester implementation.
54 void InitializeRenderFrameIfNeeded() override;
54 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; 55 TestRenderFrameHost* AppendChild(const std::string& frame_name) override;
55 void SendNavigate(int page_id, 56 void SendNavigate(int page_id,
56 int nav_entry_id, 57 int nav_entry_id,
57 bool did_create_new_entry, 58 bool did_create_new_entry,
58 const GURL& url) override; 59 const GURL& url) override;
59 void SendFailedNavigate(int page_id, 60 void SendFailedNavigate(int page_id,
60 int nav_entry_id, 61 int nav_entry_id,
61 bool did_create_new_entry, 62 bool did_create_new_entry,
62 const GURL& url) override; 63 const GURL& url) override;
63 void SendNavigateWithTransition(int page_id, 64 void SendNavigateWithTransition(int page_id,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 // See set_simulate_history_list_was_cleared() above. 149 // See set_simulate_history_list_was_cleared() above.
149 bool simulate_history_list_was_cleared_; 150 bool simulate_history_list_was_cleared_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); 152 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
152 }; 153 };
153 154
154 } // namespace content 155 } // namespace content
155 156
156 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 157 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698