OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_ |
6 #define CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_ | 6 #define CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_ |
7 | 7 |
| 8 #include "base/single_thread_task_runner.h" |
8 #include "chrome/renderer/media/webrtc_logging_message_filter.h" | 9 #include "chrome/renderer/media/webrtc_logging_message_filter.h" |
9 | 10 |
10 class MockWebRtcLoggingMessageFilter | 11 class MockWebRtcLoggingMessageFilter |
11 : public WebRtcLoggingMessageFilter { | 12 : public WebRtcLoggingMessageFilter { |
12 public: | 13 public: |
13 explicit MockWebRtcLoggingMessageFilter( | 14 explicit MockWebRtcLoggingMessageFilter( |
14 const scoped_refptr<base::MessageLoopProxy>& io_message_loop); | 15 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
15 | 16 |
16 void AddLogMessages( | 17 void AddLogMessages( |
17 const std::vector<WebRtcLoggingMessageData>& messages) override; | 18 const std::vector<WebRtcLoggingMessageData>& messages) override; |
18 void LoggingStopped() override; | 19 void LoggingStopped() override; |
19 | 20 |
20 ChromeWebRtcLogMessageDelegate* log_message_delegate() { | 21 ChromeWebRtcLogMessageDelegate* log_message_delegate() { |
21 return log_message_delegate_; | 22 return log_message_delegate_; |
22 } | 23 } |
23 | 24 |
24 std::string log_buffer_; | 25 std::string log_buffer_; |
25 bool logging_stopped_; | 26 bool logging_stopped_; |
26 | 27 |
27 protected: | 28 protected: |
28 ~MockWebRtcLoggingMessageFilter() override; | 29 ~MockWebRtcLoggingMessageFilter() override; |
29 | 30 |
30 private: | 31 private: |
31 DISALLOW_COPY_AND_ASSIGN(MockWebRtcLoggingMessageFilter); | 32 DISALLOW_COPY_AND_ASSIGN(MockWebRtcLoggingMessageFilter); |
32 }; | 33 }; |
33 | 34 |
34 #endif // CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_ | 35 #endif // CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_ |
OLD | NEW |