Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5442)

Unified Diff: chrome/renderer/media/mock_webrtc_logging_message_filter.cc

Issue 218403004: Fix the timestamp generation for webrtc native log. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/media/mock_webrtc_logging_message_filter.cc
diff --git a/chrome/renderer/media/mock_webrtc_logging_message_filter.cc b/chrome/renderer/media/mock_webrtc_logging_message_filter.cc
index b8047e3fbdefbbb71234a5c4ae4f7edb6a21a7ab..2721b70c601da7b29c9c1c8e925db01523db01d6 100644
--- a/chrome/renderer/media/mock_webrtc_logging_message_filter.cc
+++ b/chrome/renderer/media/mock_webrtc_logging_message_filter.cc
@@ -15,9 +15,11 @@ MockWebRtcLoggingMessageFilter::MockWebRtcLoggingMessageFilter(
MockWebRtcLoggingMessageFilter::~MockWebRtcLoggingMessageFilter() {
}
-void MockWebRtcLoggingMessageFilter::AddLogMessage(const std::string& message) {
+void MockWebRtcLoggingMessageFilter::AddLogMessages(
+ const std::vector<WebRtcLoggingMessageData>& messages) {
CHECK(io_message_loop_->BelongsToCurrentThread());
- log_buffer_ += message + "\n";
+ for (size_t i = 0; i < messages.size(); ++i)
+ log_buffer_ += messages[i].message + "\n";
}
void MockWebRtcLoggingMessageFilter::LoggingStopped() {
« no previous file with comments | « chrome/renderer/media/mock_webrtc_logging_message_filter.h ('k') | chrome/renderer/media/webrtc_logging_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698