| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 int GetActiveViewCount(); | 105 int GetActiveViewCount(); |
| 106 | 106 |
| 107 void set_is_isolated_guest(bool is_isolated_guest) { | 107 void set_is_isolated_guest(bool is_isolated_guest) { |
| 108 is_isolated_guest_ = is_isolated_guest; | 108 is_isolated_guest_ = is_isolated_guest; |
| 109 } | 109 } |
| 110 | 110 |
| 111 void SetProcessHandle(scoped_ptr<base::ProcessHandle> new_handle) { | 111 void SetProcessHandle(scoped_ptr<base::ProcessHandle> new_handle) { |
| 112 process_handle = new_handle.Pass(); | 112 process_handle = new_handle.Pass(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void GetAudioOutputControllers( |
| 116 const GetAudioOutputControllersCallback& callback) const override {} |
| 117 |
| 115 private: | 118 private: |
| 116 // Stores IPC messages that would have been sent to the renderer. | 119 // Stores IPC messages that would have been sent to the renderer. |
| 117 IPC::TestSink sink_; | 120 IPC::TestSink sink_; |
| 118 int bad_msg_count_; | 121 int bad_msg_count_; |
| 119 const MockRenderProcessHostFactory* factory_; | 122 const MockRenderProcessHostFactory* factory_; |
| 120 int id_; | 123 int id_; |
| 121 BrowserContext* browser_context_; | 124 BrowserContext* browser_context_; |
| 122 ObserverList<RenderProcessHostObserver> observers_; | 125 ObserverList<RenderProcessHostObserver> observers_; |
| 123 | 126 |
| 124 IDMap<RenderWidgetHost> render_widget_hosts_; | 127 IDMap<RenderWidgetHost> render_widget_hosts_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 151 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 154 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 152 // the destructor and prevent them from being leaked. | 155 // the destructor and prevent them from being leaked. |
| 153 mutable ScopedVector<MockRenderProcessHost> processes_; | 156 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 154 | 157 |
| 155 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 158 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 156 }; | 159 }; |
| 157 | 160 |
| 158 } // namespace content | 161 } // namespace content |
| 159 | 162 |
| 160 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 163 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |