| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |