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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <utility> | 10 #include <utility> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 BrowserContext* GetBrowserContext() const override; | 74 BrowserContext* GetBrowserContext() const override; |
75 bool InSameStoragePartition(StoragePartition* partition) const override; | 75 bool InSameStoragePartition(StoragePartition* partition) const override; |
76 IPC::ChannelProxy* GetChannel() override; | 76 IPC::ChannelProxy* GetChannel() override; |
77 void AddFilter(BrowserMessageFilter* filter) override; | 77 void AddFilter(BrowserMessageFilter* filter) override; |
78 bool FastShutdownForPageCount(size_t count) override; | 78 bool FastShutdownForPageCount(size_t count) override; |
79 base::TimeDelta GetChildProcessIdleTime() const override; | 79 base::TimeDelta GetChildProcessIdleTime() const override; |
80 void FilterURL(bool empty_allowed, GURL* url) override; | 80 void FilterURL(bool empty_allowed, GURL* url) override; |
81 #if defined(ENABLE_WEBRTC) | 81 #if defined(ENABLE_WEBRTC) |
82 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 82 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
83 void DisableAudioDebugRecordings() override; | 83 void DisableAudioDebugRecordings() override; |
84 void EnableEventLogRecordings(const base::FilePath& file) override; | |
85 void DisableEventLogRecordings() override; | |
86 void SetWebRtcLogMessageCallback( | 84 void SetWebRtcLogMessageCallback( |
87 base::Callback<void(const std::string&)> callback) override; | 85 base::Callback<void(const std::string&)> callback) override; |
88 void ClearWebRtcLogMessageCallback() override; | 86 void ClearWebRtcLogMessageCallback() override; |
89 WebRtcStopRtpDumpCallback StartRtpDump( | 87 WebRtcStopRtpDumpCallback StartRtpDump( |
90 bool incoming, | 88 bool incoming, |
91 bool outgoing, | 89 bool outgoing, |
92 const WebRtcRtpPacketCallback& packet_callback) override; | 90 const WebRtcRtpPacketCallback& packet_callback) override; |
ncarter (slow)
2016/05/20 18:27:21
Doesn't this need an implementation of StartWebRTC
Ivo-OOO until feb 6
2016/05/25 14:57:00
Hmm, that's strange. I would expect that too, but
ncarter (slow)
2016/05/25 21:28:57
Were you building the unittests, or just chrome?
| |
93 #endif | 91 #endif |
94 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 92 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
95 void NotifyTimezoneChange(const std::string& zone_id) override; | 93 void NotifyTimezoneChange(const std::string& zone_id) override; |
96 ServiceRegistry* GetServiceRegistry() override; | 94 ServiceRegistry* GetServiceRegistry() override; |
97 shell::Connection* GetChildConnection() override; | 95 shell::Connection* GetChildConnection() override; |
98 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 96 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
99 override; | 97 override; |
100 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 98 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
101 #if defined(ENABLE_BROWSER_CDMS) | 99 #if defined(ENABLE_BROWSER_CDMS) |
102 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | 100 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
183 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 181 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
184 // the destructor and prevent them from being leaked. | 182 // the destructor and prevent them from being leaked. |
185 mutable ScopedVector<MockRenderProcessHost> processes_; | 183 mutable ScopedVector<MockRenderProcessHost> processes_; |
186 | 184 |
187 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 185 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
188 }; | 186 }; |
189 | 187 |
190 } // namespace content | 188 } // namespace content |
191 | 189 |
192 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 190 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |