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

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

Issue 1159183002: Improve process crash handling in RenderViewHost & mock RenderProcessHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile problem in webview_interactive_uitest.cc 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
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_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 void GetAudioOutputControllers( 119 void GetAudioOutputControllers(
120 const GetAudioOutputControllersCallback& callback) const override {} 120 const GetAudioOutputControllersCallback& callback) const override {}
121 121
122 private: 122 private:
123 // Stores IPC messages that would have been sent to the renderer. 123 // Stores IPC messages that would have been sent to the renderer.
124 IPC::TestSink sink_; 124 IPC::TestSink sink_;
125 int bad_msg_count_; 125 int bad_msg_count_;
126 const MockRenderProcessHostFactory* factory_; 126 const MockRenderProcessHostFactory* factory_;
127 int id_; 127 int id_;
128 bool has_connection_;
128 BrowserContext* browser_context_; 129 BrowserContext* browser_context_;
129 ObserverList<RenderProcessHostObserver> observers_; 130 ObserverList<RenderProcessHostObserver> observers_;
130 131
131 IDMap<RenderWidgetHost> render_widget_hosts_; 132 IDMap<RenderWidgetHost> render_widget_hosts_;
132 int prev_routing_id_; 133 int prev_routing_id_;
133 IDMap<IPC::Listener> listeners_; 134 IDMap<IPC::Listener> listeners_;
134 bool fast_shutdown_started_; 135 bool fast_shutdown_started_;
135 bool deletion_callback_called_; 136 bool deletion_callback_called_;
136 bool is_isolated_guest_; 137 bool is_isolated_guest_;
137 scoped_ptr<base::ProcessHandle> process_handle; 138 scoped_ptr<base::ProcessHandle> process_handle;
(...skipping 20 matching lines...) Expand all
158 // for deleting all MockRenderProcessHosts that have not deleted by a test in 159 // for deleting all MockRenderProcessHosts that have not deleted by a test in
159 // the destructor and prevent them from being leaked. 160 // the destructor and prevent them from being leaked.
160 mutable ScopedVector<MockRenderProcessHost> processes_; 161 mutable ScopedVector<MockRenderProcessHost> processes_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
163 }; 164 };
164 165
165 } // namespace content 166 } // namespace content
166 167
167 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698