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

Side by Side Diff: chrome/browser/media/webrtc_log_uploader_unittest.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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_log_uploader.h"
6
5 #include <stddef.h> 7 #include <stddef.h>
6
7 #include <string> 8 #include <string>
9 #include <utility>
8 10
9 #include "base/files/file.h" 11 #include "base/files/file.h"
10 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
13 #include "base/logging.h" 15 #include "base/logging.h"
14 #include "base/run_loop.h" 16 #include "base/run_loop.h"
15 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_split.h" 18 #include "base/strings/string_split.h"
17 #include "base/time/time.h" 19 #include "base/time/time.h"
18 #include "chrome/browser/media/webrtc_log_uploader.h"
19 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 21 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 23
23 const char kTestTime[] = "time"; 24 const char kTestTime[] = "time";
24 const char kTestReportId[] = "report-id"; 25 const char kTestReportId[] = "report-id";
25 const char kTestLocalId[] = "local-id"; 26 const char kTestLocalId[] = "local-id";
26 27
27 class WebRtcLogUploaderTest : public testing::Test { 28 class WebRtcLogUploaderTest : public testing::Test {
28 public: 29 public:
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 scoped_refptr<WebRtcLoggingHandlerHost> host( 276 scoped_refptr<WebRtcLoggingHandlerHost> host(
276 new WebRtcLoggingHandlerHost(profile.get(), webrtc_log_uploader.get())); 277 new WebRtcLoggingHandlerHost(profile.get(), webrtc_log_uploader.get()));
277 278
278 upload_done_data.incoming_rtp_dump = incoming_dump; 279 upload_done_data.incoming_rtp_dump = incoming_dump;
279 upload_done_data.outgoing_rtp_dump = outgoing_dump; 280 upload_done_data.outgoing_rtp_dump = outgoing_dump;
280 upload_done_data.host = host.get(); 281 upload_done_data.host = host.get();
281 282
282 scoped_ptr<WebRtcLogBuffer> log(new WebRtcLogBuffer()); 283 scoped_ptr<WebRtcLogBuffer> log(new WebRtcLogBuffer());
283 log->SetComplete(); 284 log->SetComplete();
284 webrtc_log_uploader->LoggingStoppedDoUpload( 285 webrtc_log_uploader->LoggingStoppedDoUpload(
285 log.Pass(), make_scoped_ptr(new MetaDataMap()), upload_done_data); 286 std::move(log), make_scoped_ptr(new MetaDataMap()), upload_done_data);
286 287
287 VerifyRtpDumpInMultipart(post_data, "rtpdump_recv", incoming_dump_content); 288 VerifyRtpDumpInMultipart(post_data, "rtpdump_recv", incoming_dump_content);
288 VerifyRtpDumpInMultipart(post_data, "rtpdump_send", outgoing_dump_content); 289 VerifyRtpDumpInMultipart(post_data, "rtpdump_send", outgoing_dump_content);
289 290
290 webrtc_log_uploader->StartShutdown(); 291 webrtc_log_uploader->StartShutdown();
291 FlushIOThread(); 292 FlushIOThread();
292 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698