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

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

Issue 210303003: Cast: Remove LoggingStats in favor of event subscribers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 6 years, 8 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
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 5 #include <algorithm>
6 #include <climits> 6 #include <climits>
7 #include <cstdarg> 7 #include <cstdarg>
8 #include <cstdio> 8 #include <cstdio>
9 #include <string> 9 #include <string>
10 10
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 }; 183 };
184 184
185 } // namespace cast 185 } // namespace cast
186 } // namespace media 186 } // namespace media
187 187
188 int main(int argc, char** argv) { 188 int main(int argc, char** argv) {
189 base::AtExitManager at_exit; 189 base::AtExitManager at_exit;
190 CommandLine::Init(argc, argv); 190 CommandLine::Init(argc, argv);
191 InitLogging(logging::LoggingSettings()); 191 InitLogging(logging::LoggingSettings());
192 192
193 // Enable raw event logging only.
194 media::cast::CastLoggingConfig logging_config;
195 logging_config.enable_raw_data_collection = true;
196
197 scoped_refptr<media::cast::CastEnvironment> cast_environment( 193 scoped_refptr<media::cast::CastEnvironment> cast_environment(
198 new media::cast::StandaloneCastEnvironment(logging_config)); 194 new media::cast::StandaloneCastEnvironment);
199 195
200 media::cast::AudioReceiverConfig audio_config = 196 media::cast::AudioReceiverConfig audio_config =
201 media::cast::GetAudioReceiverConfig(); 197 media::cast::GetAudioReceiverConfig();
202 media::cast::VideoReceiverConfig video_config = 198 media::cast::VideoReceiverConfig video_config =
203 media::cast::GetVideoReceiverConfig(); 199 media::cast::GetVideoReceiverConfig();
204 200
205 int remote_port, local_port; 201 int remote_port, local_port;
206 media::cast::GetPorts(&remote_port, &local_port); 202 media::cast::GetPorts(&remote_port, &local_port);
207 if (!local_port) { 203 if (!local_port) {
208 LOG(ERROR) << "Invalid local port."; 204 LOG(ERROR) << "Invalid local port.";
(...skipping 23 matching lines...) Expand all
232 local_end_point, 228 local_end_point,
233 remote_end_point, 229 remote_end_point,
234 audio_config, 230 audio_config,
235 video_config); 231 video_config);
236 receiver_display->Start(); 232 receiver_display->Start();
237 233
238 base::MessageLoop().Run(); // Run forever (i.e., until SIGTERM). 234 base::MessageLoop().Run(); // Run forever (i.e., until SIGTERM).
239 NOTREACHED(); 235 NOTREACHED();
240 return 0; 236 return 0;
241 } 237 }
OLDNEW
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698