| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/media/webrtc/webrtc_log_uploader.h" | 5 #include "chrome/browser/media/webrtc/webrtc_log_uploader.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 scoped_refptr<WebRtcLoggingHandlerHost> host(new WebRtcLoggingHandlerHost( | 281 scoped_refptr<WebRtcLoggingHandlerHost> host(new WebRtcLoggingHandlerHost( |
| 282 -1, profile.get(), webrtc_log_uploader.get())); | 282 -1, profile.get(), webrtc_log_uploader.get())); |
| 283 | 283 |
| 284 upload_done_data.incoming_rtp_dump = incoming_dump; | 284 upload_done_data.incoming_rtp_dump = incoming_dump; |
| 285 upload_done_data.outgoing_rtp_dump = outgoing_dump; | 285 upload_done_data.outgoing_rtp_dump = outgoing_dump; |
| 286 upload_done_data.host = host.get(); | 286 upload_done_data.host = host.get(); |
| 287 | 287 |
| 288 std::unique_ptr<WebRtcLogBuffer> log(new WebRtcLogBuffer()); | 288 std::unique_ptr<WebRtcLogBuffer> log(new WebRtcLogBuffer()); |
| 289 log->SetComplete(); | 289 log->SetComplete(); |
| 290 webrtc_log_uploader->LoggingStoppedDoUpload( | 290 webrtc_log_uploader->LoggingStoppedDoUpload( |
| 291 std::move(log), base::WrapUnique(new MetaDataMap()), upload_done_data); | 291 std::move(log), base::MakeUnique<MetaDataMap>(), upload_done_data); |
| 292 | 292 |
| 293 VerifyRtpDumpInMultipart(post_data, "rtpdump_recv", incoming_dump_content); | 293 VerifyRtpDumpInMultipart(post_data, "rtpdump_recv", incoming_dump_content); |
| 294 VerifyRtpDumpInMultipart(post_data, "rtpdump_send", outgoing_dump_content); | 294 VerifyRtpDumpInMultipart(post_data, "rtpdump_send", outgoing_dump_content); |
| 295 | 295 |
| 296 webrtc_log_uploader->StartShutdown(); | 296 webrtc_log_uploader->StartShutdown(); |
| 297 FlushIOThread(); | 297 FlushIOThread(); |
| 298 } | 298 } |
| OLD | NEW |