blob: 111694275f5701d82426dfae107b7a38cb3434a7 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_
#define CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_
#include "chrome/renderer/media/webrtc_logging_message_filter.h"
class MockWebRtcLoggingMessageFilter
: public WebRtcLoggingMessageFilter {
public:
explicit MockWebRtcLoggingMessageFilter(
const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
virtual void AddLogMessages(
const std::vector<WebRtcLoggingMessageData>& messages) OVERRIDE;
virtual void LoggingStopped() OVERRIDE;
ChromeWebRtcLogMessageDelegate* log_message_delegate() {
return log_message_delegate_;
}
std::string log_buffer_;
bool logging_stopped_;
protected:
virtual ~MockWebRtcLoggingMessageFilter();
private:
DISALLOW_COPY_AND_ASSIGN(MockWebRtcLoggingMessageFilter);
};
#endif // CHROME_RENDERER_MEDIA_MOCK_WEBRTC_LOGGING_MESSAGE_FILTER_H_