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

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

Issue 2086353002: Remove calls to deprecated MessageLoop methods in media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/cast_benchmarks.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 <limits.h> 5 #include <limits.h>
6 #include <stddef.h> 6 #include <stddef.h>
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <climits> 10 #include <climits>
11 #include <cstdarg> 11 #include <cstdarg>
12 #include <cstdio> 12 #include <cstdio>
13 #include <deque> 13 #include <deque>
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <utility> 17 #include <utility>
18 18
19 #include "base/at_exit.h" 19 #include "base/at_exit.h"
20 #include "base/command_line.h" 20 #include "base/command_line.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
23 #include "base/message_loop/message_loop.h" 23 #include "base/message_loop/message_loop.h"
24 #include "base/run_loop.h"
24 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
25 #include "base/synchronization/waitable_event.h" 26 #include "base/synchronization/waitable_event.h"
26 #include "base/threading/thread.h" 27 #include "base/threading/thread.h"
27 #include "base/time/default_tick_clock.h" 28 #include "base/time/default_tick_clock.h"
28 #include "base/timer/timer.h" 29 #include "base/timer/timer.h"
29 #include "media/audio/audio_io.h" 30 #include "media/audio/audio_io.h"
30 #include "media/audio/audio_manager.h" 31 #include "media/audio/audio_manager.h"
31 #include "media/audio/fake_audio_log_factory.h" 32 #include "media/audio/fake_audio_log_factory.h"
32 #include "media/base/audio_bus.h" 33 #include "media/base/audio_bus.h"
33 #include "media/base/audio_parameters.h" 34 #include "media/base/audio_parameters.h"
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 #endif // defined(USE_X11) 596 #endif // defined(USE_X11)
596 media::cast::NaivePlayer player(cast_environment, 597 media::cast::NaivePlayer player(cast_environment,
597 local_end_point, 598 local_end_point,
598 remote_end_point, 599 remote_end_point,
599 audio_config, 600 audio_config,
600 video_config, 601 video_config,
601 window_width, 602 window_width,
602 window_height); 603 window_height);
603 player.Start(); 604 player.Start();
604 605
605 message_loop.Run(); // Run forever (i.e., until SIGTERM). 606 base::RunLoop().Run(); // Run forever (i.e., until SIGTERM).
606 NOTREACHED(); 607 NOTREACHED();
607 return 0; 608 return 0;
608 } 609 }
OLDNEW
« no previous file with comments | « media/cast/test/cast_benchmarks.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698