OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/cast/test/utility/standalone_cast_environment.h" | 5 #include "media/cast/test/utility/standalone_cast_environment.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" |
8 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
9 | 10 |
10 namespace media { | 11 namespace media { |
11 namespace cast { | 12 namespace cast { |
12 | 13 |
13 StandaloneCastEnvironment::StandaloneCastEnvironment() | 14 StandaloneCastEnvironment::StandaloneCastEnvironment() |
14 : CastEnvironment( | 15 : CastEnvironment( |
15 base::WrapUnique<base::TickClock>(new base::DefaultTickClock()), | 16 base::WrapUnique<base::TickClock>(new base::DefaultTickClock()), |
16 NULL, | 17 NULL, |
17 NULL, | 18 NULL, |
(...skipping 21 matching lines...) Expand all Loading... |
39 | 40 |
40 void StandaloneCastEnvironment::Shutdown() { | 41 void StandaloneCastEnvironment::Shutdown() { |
41 CHECK(CalledOnValidThread()); | 42 CHECK(CalledOnValidThread()); |
42 main_thread_.Stop(); | 43 main_thread_.Stop(); |
43 audio_thread_.Stop(); | 44 audio_thread_.Stop(); |
44 video_thread_.Stop(); | 45 video_thread_.Stop(); |
45 } | 46 } |
46 | 47 |
47 } // namespace cast | 48 } // namespace cast |
48 } // namespace media | 49 } // namespace media |
OLD | NEW |