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

Side by Side Diff: media/cast/test/sender.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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 // Test application that simulates a cast sender - Data can be either generated 5 // Test application that simulates a cast sender - Data can be either generated
6 // or read from a file. 6 // or read from a file.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const char kSwitchSourceFile[] = "source-file"; 70 const char kSwitchSourceFile[] = "source-file";
71 const char kSwitchFps[] = "fps"; 71 const char kSwitchFps[] = "fps";
72 const char kSwitchVaryFrameSizes[] = "vary-frame-sizes"; 72 const char kSwitchVaryFrameSizes[] = "vary-frame-sizes";
73 73
74 void UpdateCastTransportStatus( 74 void UpdateCastTransportStatus(
75 media::cast::CastTransportStatus status) { 75 media::cast::CastTransportStatus status) {
76 VLOG(1) << "Transport status: " << status; 76 VLOG(1) << "Transport status: " << status;
77 } 77 }
78 78
79 void QuitLoopOnInitializationResult(media::cast::OperationalStatus result) { 79 void QuitLoopOnInitializationResult(media::cast::OperationalStatus result) {
80 CHECK(result == media::cast::STATUS_INITIALIZED) 80 // Cast sender uninitialized
81 << "Cast sender uninitialized"; 81 CHECK(result == media::cast::STATUS_INITIALIZED);
82 base::MessageLoop::current()->QuitWhenIdle(); 82 base::MessageLoop::current()->QuitWhenIdle();
83 } 83 }
84 84
85 net::IPEndPoint CreateUDPAddress(const std::string& ip_str, uint16_t port) { 85 net::IPEndPoint CreateUDPAddress(const std::string& ip_str, uint16_t port) {
86 net::IPAddress ip_address; 86 net::IPAddress ip_address;
87 CHECK(ip_address.AssignFromIPLiteral(ip_str)); 87 CHECK(ip_address.AssignFromIPLiteral(ip_str));
88 return net::IPEndPoint(ip_address, port); 88 return net::IPEndPoint(ip_address, port);
89 } 89 }
90 90
91 void DumpLoggingData(const media::cast::proto::LogMetadata& log_metadata, 91 void DumpLoggingData(const media::cast::proto::LogMetadata& log_metadata,
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 FROM_HERE, base::Bind(&media::cast::CastSender::InitializeAudio, 349 FROM_HERE, base::Bind(&media::cast::CastSender::InitializeAudio,
350 base::Unretained(cast_sender.get()), audio_config, 350 base::Unretained(cast_sender.get()), audio_config,
351 base::Bind(&QuitLoopOnInitializationResult))); 351 base::Bind(&QuitLoopOnInitializationResult)));
352 base::RunLoop().Run(); // Wait for audio initialization. 352 base::RunLoop().Run(); // Wait for audio initialization.
353 353
354 fake_media_source->Start(cast_sender->audio_frame_input(), 354 fake_media_source->Start(cast_sender->audio_frame_input(),
355 cast_sender->video_frame_input()); 355 cast_sender->video_frame_input());
356 base::RunLoop().Run(); 356 base::RunLoop().Run();
357 return 0; 357 return 0;
358 } 358 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698