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

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

Issue 665923002: Moves RenderProcessHostImpl::init_time() to RenderProcessHost to fix broken test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed moved method to remove explicit project name from it. Created 6 years, 2 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void SetWebRtcLogMessageCallback( 74 void SetWebRtcLogMessageCallback(
75 base::Callback<void(const std::string&)> callback) override; 75 base::Callback<void(const std::string&)> callback) override;
76 WebRtcStopRtpDumpCallback StartRtpDump( 76 WebRtcStopRtpDumpCallback StartRtpDump(
77 bool incoming, 77 bool incoming,
78 bool outgoing, 78 bool outgoing,
79 const WebRtcRtpPacketCallback& packet_callback) override; 79 const WebRtcRtpPacketCallback& packet_callback) override;
80 #endif 80 #endif
81 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; 81 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
82 void NotifyTimezoneChange() override; 82 void NotifyTimezoneChange() override;
83 ServiceRegistry* GetServiceRegistry() override; 83 ServiceRegistry* GetServiceRegistry() override;
84 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
84 85
85 // IPC::Sender via RenderProcessHost. 86 // IPC::Sender via RenderProcessHost.
86 bool Send(IPC::Message* msg) override; 87 bool Send(IPC::Message* msg) override;
87 88
88 // IPC::Listener via RenderProcessHost. 89 // IPC::Listener via RenderProcessHost.
89 bool OnMessageReceived(const IPC::Message& msg) override; 90 bool OnMessageReceived(const IPC::Message& msg) override;
90 void OnChannelConnected(int32 peer_pid) override; 91 void OnChannelConnected(int32 peer_pid) override;
91 92
92 // Attaches the factory object so we can remove this object in its destructor 93 // Attaches the factory object so we can remove this object in its destructor
93 // and prevent MockRenderProcessHostFacotry from deleting it. 94 // and prevent MockRenderProcessHostFacotry from deleting it.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // for deleting all MockRenderProcessHosts that have not deleted by a test in 145 // for deleting all MockRenderProcessHosts that have not deleted by a test in
145 // the destructor and prevent them from being leaked. 146 // the destructor and prevent them from being leaked.
146 mutable ScopedVector<MockRenderProcessHost> processes_; 147 mutable ScopedVector<MockRenderProcessHost> processes_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 149 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
149 }; 150 };
150 151
151 } // namespace content 152 } // namespace content
152 153
153 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 154 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698