blob: b8047e3fbdefbbb71234a5c4ae4f7edb6a21a7ab [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.
#include "chrome/renderer/media/mock_webrtc_logging_message_filter.h"
#include "base/logging.h"
MockWebRtcLoggingMessageFilter::MockWebRtcLoggingMessageFilter(
const scoped_refptr<base::MessageLoopProxy>& io_message_loop)
: WebRtcLoggingMessageFilter(io_message_loop),
logging_stopped_(false) {
}
MockWebRtcLoggingMessageFilter::~MockWebRtcLoggingMessageFilter() {
}
void MockWebRtcLoggingMessageFilter::AddLogMessage(const std::string& message) {
CHECK(io_message_loop_->BelongsToCurrentThread());
log_buffer_ += message + "\n";
}
void MockWebRtcLoggingMessageFilter::LoggingStopped() {
CHECK(io_message_loop_->BelongsToCurrentThread());
logging_stopped_ = true;
}