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

Side by Side Diff: content/public/test/test_renderer_host.h

Issue 1572743002: Make sure bubbles in Views default to close before their RenderFrameHosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Move DCHECK string into longer comment Created 4 years, 10 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 | « components/bubble/bubble_manager_unittest.cc ('k') | content/test/test_render_frame_host.h » ('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 (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_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Simulates initialization of the RenderFrame object in the renderer process 73 // Simulates initialization of the RenderFrame object in the renderer process
74 // and ensures internal state of RenderFrameHost is ready for simulating 74 // and ensures internal state of RenderFrameHost is ready for simulating
75 // RenderFrame originated IPCs. 75 // RenderFrame originated IPCs.
76 virtual void InitializeRenderFrameIfNeeded() = 0; 76 virtual void InitializeRenderFrameIfNeeded() = 0;
77 77
78 // Gives tests access to RenderFrameHostImpl::OnCreateChild. The returned 78 // Gives tests access to RenderFrameHostImpl::OnCreateChild. The returned
79 // RenderFrameHost is owned by the parent RenderFrameHost. 79 // RenderFrameHost is owned by the parent RenderFrameHost.
80 virtual RenderFrameHost* AppendChild(const std::string& frame_name) = 0; 80 virtual RenderFrameHost* AppendChild(const std::string& frame_name) = 0;
81 81
82 // Gives tests access to RenderFrameHostImpl::OnDetach. Destroys |this|.
83 virtual void Detach() = 0;
84
82 // Simulates a renderer-initiated navigation to |url| starting in the 85 // Simulates a renderer-initiated navigation to |url| starting in the
83 // RenderFrameHost. 86 // RenderFrameHost.
84 virtual void SimulateNavigationStart(const GURL& url) = 0; 87 virtual void SimulateNavigationStart(const GURL& url) = 0;
85 88
86 // Simulates a redirect to |new_url| for the navigation in the 89 // Simulates a redirect to |new_url| for the navigation in the
87 // RenderFrameHost. 90 // RenderFrameHost.
88 virtual void SimulateRedirect(const GURL& new_url) = 0; 91 virtual void SimulateRedirect(const GURL& new_url) = 0;
89 92
90 // Simulates a navigation to |url| committing in the RenderFrameHost. 93 // Simulates a navigation to |url| committing in the RenderFrameHost.
91 virtual void SimulateNavigationCommit(const GURL& url) = 0; 94 virtual void SimulateNavigationCommit(const GURL& url) = 0;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; 288 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_;
286 #endif 289 #endif
287 RenderViewHostTestEnabler rvh_test_enabler_; 290 RenderViewHostTestEnabler rvh_test_enabler_;
288 291
289 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 292 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
290 }; 293 };
291 294
292 } // namespace content 295 } // namespace content
293 296
294 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 297 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « components/bubble/bubble_manager_unittest.cc ('k') | content/test/test_render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698