OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/remoting/remoting_renderer_controller.h" | 5 #include "media/remoting/remoting_renderer_controller.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "media/base/audio_decoder_config.h" | 11 #include "media/base/audio_decoder_config.h" |
11 #include "media/base/cdm_config.h" | 12 #include "media/base/cdm_config.h" |
12 #include "media/base/limits.h" | 13 #include "media/base/limits.h" |
13 #include "media/base/media_util.h" | 14 #include "media/base/media_util.h" |
14 #include "media/base/test_helpers.h" | 15 #include "media/base/test_helpers.h" |
15 #include "media/base/video_decoder_config.h" | 16 #include "media/base/video_decoder_config.h" |
16 #include "media/remoting/fake_remoting_controller.h" | 17 #include "media/remoting/fake_remoting_controller.h" |
17 #include "media/remoting/remoting_cdm.h" | 18 #include "media/remoting/remoting_cdm.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 remoting_renderer_controller_->OnSetCdm(remoting_cdm_context.get()); | 344 remoting_renderer_controller_->OnSetCdm(remoting_cdm_context.get()); |
344 RunUntilIdle(); | 345 RunUntilIdle(); |
345 // Switch to using the remoting renderer, even when the remoting CDM session | 346 // Switch to using the remoting renderer, even when the remoting CDM session |
346 // was already terminated, to show the failure interstitial. | 347 // was already terminated, to show the failure interstitial. |
347 EXPECT_TRUE(is_rendering_remotely_); | 348 EXPECT_TRUE(is_rendering_remotely_); |
348 EXPECT_EQ(RemotingSessionState::SESSION_PERMANENTLY_STOPPED, | 349 EXPECT_EQ(RemotingSessionState::SESSION_PERMANENTLY_STOPPED, |
349 remoting_renderer_controller_->remoting_source()->state()); | 350 remoting_renderer_controller_->remoting_source()->state()); |
350 } | 351 } |
351 | 352 |
352 } // namespace media | 353 } // namespace media |
OLD | NEW |