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 <stdint.h> |
| 6 |
5 #include <vector> | 7 #include <vector> |
6 | 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
10 #include "base/test/simple_test_tick_clock.h" | 13 #include "base/test/simple_test_tick_clock.h" |
11 #include "media/base/gmock_callback_support.h" | 14 #include "media/base/gmock_callback_support.h" |
12 #include "media/base/mock_filters.h" | 15 #include "media/base/mock_filters.h" |
13 #include "media/base/test_helpers.h" | 16 #include "media/base/test_helpers.h" |
14 #include "media/renderers/renderer_impl.h" | 17 #include "media/renderers/renderer_impl.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
16 | 19 |
17 using ::testing::_; | 20 using ::testing::_; |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 .WillOnce( | 599 .WillOnce( |
597 SetBufferingState(&audio_buffering_state_cb_, BUFFERING_HAVE_ENOUGH)); | 600 SetBufferingState(&audio_buffering_state_cb_, BUFFERING_HAVE_ENOUGH)); |
598 EXPECT_CALL(*video_renderer_, StartPlayingFrom(kStartTime)); | 601 EXPECT_CALL(*video_renderer_, StartPlayingFrom(kStartTime)); |
599 renderer_impl_->StartPlayingFrom(kStartTime); | 602 renderer_impl_->StartPlayingFrom(kStartTime); |
600 | 603 |
601 // Nothing else should primed on the message loop. | 604 // Nothing else should primed on the message loop. |
602 base::RunLoop().RunUntilIdle(); | 605 base::RunLoop().RunUntilIdle(); |
603 } | 606 } |
604 | 607 |
605 } // namespace media | 608 } // namespace media |
OLD | NEW |