| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" | 
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.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 tests access to the max page ID currently used for this process. | 32   // Provides tests access to the max page ID currently used for this process. | 
| 33   int max_page_id() const { return max_page_id_; } | 33   int max_page_id() const { return max_page_id_; } | 
| 34 | 34 | 
| 35   // Provides test access to how many times a bad message has been received. | 35   // Provides test access to how many times a bad message has been received. | 
| 36   int bad_msg_count() const { return bad_msg_count_; } | 36   int bad_msg_count() const { return bad_msg_count_; } | 
| 37 | 37 | 
| 38   // RenderProcessHost implementation (public portion). | 38   // RenderProcessHost implementation (public portion). | 
|  | 39   virtual void EnableSendQueue(); | 
| 39   virtual bool Init(bool is_accessibility_enabled); | 40   virtual bool Init(bool is_accessibility_enabled); | 
| 40   virtual int GetNextRoutingID(); | 41   virtual int GetNextRoutingID(); | 
| 41   virtual void CancelResourceRequests(int render_widget_id); | 42   virtual void CancelResourceRequests(int render_widget_id); | 
| 42   virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); | 43   virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); | 
| 43   virtual bool WaitForUpdateMsg(int render_widget_id, | 44   virtual bool WaitForUpdateMsg(int render_widget_id, | 
| 44                                 const base::TimeDelta& max_delay, | 45                                 const base::TimeDelta& max_delay, | 
| 45                                 IPC::Message* msg); | 46                                 IPC::Message* msg); | 
| 46   virtual void ReceivedBadMessage(); | 47   virtual void ReceivedBadMessage(); | 
| 47   virtual void WidgetRestored(); | 48   virtual void WidgetRestored(); | 
| 48   virtual void WidgetHidden(); | 49   virtual void WidgetHidden(); | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 90  private: | 91  private: | 
| 91   // A list of MockRenderProcessHosts created by this object. This list is used | 92   // A list of MockRenderProcessHosts created by this object. This list is used | 
| 92   // for deleting all MockRenderProcessHosts that have not deleted by a test in | 93   // for deleting all MockRenderProcessHosts that have not deleted by a test in | 
| 93   // the destructor and prevent them from being leaked. | 94   // the destructor and prevent them from being leaked. | 
| 94   mutable ScopedVector<MockRenderProcessHost> processes_; | 95   mutable ScopedVector<MockRenderProcessHost> processes_; | 
| 95 | 96 | 
| 96   DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 97   DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 
| 97 }; | 98 }; | 
| 98 | 99 | 
| 99 #endif  // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 100 #endif  // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 
| OLD | NEW | 
|---|