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