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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ptr_util.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/test/test_message_loop.h" | 11 #include "base/test/test_message_loop.h" |
11 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/timer/elapsed_timer.h" | 14 #include "base/timer/elapsed_timer.h" |
14 #include "media/base/audio_renderer_sink.h" | 15 #include "media/base/audio_renderer_sink.h" |
15 #include "media/base/cdm_config.h" | 16 #include "media/base/cdm_config.h" |
16 #include "media/base/cdm_context.h" | 17 #include "media/base/cdm_context.h" |
17 #include "media/base/gmock_callback_support.h" | 18 #include "media/base/gmock_callback_support.h" |
18 #include "media/base/mock_filters.h" | 19 #include "media/base/mock_filters.h" |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 Play(); | 459 Play(); |
459 remote_renderer_client_->OnError(PIPELINE_ERROR_DECODE); | 460 remote_renderer_client_->OnError(PIPELINE_ERROR_DECODE); |
460 base::RunLoop().RunUntilIdle(); | 461 base::RunLoop().RunUntilIdle(); |
461 | 462 |
462 EXPECT_CALL(*mock_renderer_, SetPlaybackRate(0.0)).Times(1); | 463 EXPECT_CALL(*mock_renderer_, SetPlaybackRate(0.0)).Times(1); |
463 mojo_renderer_->SetPlaybackRate(0.0); | 464 mojo_renderer_->SetPlaybackRate(0.0); |
464 Flush(); | 465 Flush(); |
465 } | 466 } |
466 | 467 |
467 } // namespace media | 468 } // namespace media |
OLD | NEW |