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 "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 // renderer via this RenderProcessHost. | 29 // renderer via this RenderProcessHost. |
30 IPC::TestSink& sink() { return sink_; } | 30 IPC::TestSink& sink() { return sink_; } |
31 | 31 |
32 // Provides test access to how many times a bad message has been received. | 32 // Provides test access to how many times a bad message has been received. |
33 int bad_msg_count() const { return bad_msg_count_; } | 33 int bad_msg_count() const { return bad_msg_count_; } |
34 | 34 |
35 // RenderProcessHost implementation (public portion). | 35 // RenderProcessHost implementation (public portion). |
36 virtual void EnableSendQueue() OVERRIDE; | 36 virtual void EnableSendQueue() OVERRIDE; |
37 virtual bool Init() OVERRIDE; | 37 virtual bool Init() OVERRIDE; |
38 virtual int GetNextRoutingID() OVERRIDE; | 38 virtual int GetNextRoutingID() OVERRIDE; |
39 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE; | |
40 virtual void SimulateSwapOutACK( | 39 virtual void SimulateSwapOutACK( |
41 const ViewMsg_SwapOut_Params& params) OVERRIDE; | 40 const ViewMsg_SwapOut_Params& params) OVERRIDE; |
42 virtual bool WaitForBackingStoreMsg(int render_widget_id, | 41 virtual bool WaitForBackingStoreMsg(int render_widget_id, |
43 const base::TimeDelta& max_delay, | 42 const base::TimeDelta& max_delay, |
44 IPC::Message* msg) OVERRIDE; | 43 IPC::Message* msg) OVERRIDE; |
45 virtual void ReceivedBadMessage() OVERRIDE; | 44 virtual void ReceivedBadMessage() OVERRIDE; |
46 virtual void WidgetRestored() OVERRIDE; | 45 virtual void WidgetRestored() OVERRIDE; |
47 virtual void WidgetHidden() OVERRIDE; | 46 virtual void WidgetHidden() OVERRIDE; |
48 virtual int VisibleWidgetCount() const OVERRIDE; | 47 virtual int VisibleWidgetCount() const OVERRIDE; |
49 virtual bool IsGuest() const OVERRIDE; | 48 virtual bool IsGuest() const OVERRIDE; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 122 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
124 // the destructor and prevent them from being leaked. | 123 // the destructor and prevent them from being leaked. |
125 mutable ScopedVector<MockRenderProcessHost> processes_; | 124 mutable ScopedVector<MockRenderProcessHost> processes_; |
126 | 125 |
127 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 126 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
128 }; | 127 }; |
129 | 128 |
130 } // namespace content | 129 } // namespace content |
131 | 130 |
132 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 131 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |