| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
| 11 #include "media/base/gmock_callback_support.h" | 11 #include "media/base/gmock_callback_support.h" |
| 12 #include "media/base/mock_filters.h" | 12 #include "media/base/mock_filters.h" |
| 13 #include "media/base/test_helpers.h" | 13 #include "media/base/test_helpers.h" |
| 14 #include "media/filters/renderer_impl.h" | 14 #include "media/renderers/renderer_impl.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 using ::testing::_; | 17 using ::testing::_; |
| 18 using ::testing::DoAll; | 18 using ::testing::DoAll; |
| 19 using ::testing::InSequence; | 19 using ::testing::InSequence; |
| 20 using ::testing::Mock; | 20 using ::testing::Mock; |
| 21 using ::testing::Return; | 21 using ::testing::Return; |
| 22 using ::testing::SaveArg; | 22 using ::testing::SaveArg; |
| 23 using ::testing::StrictMock; | 23 using ::testing::StrictMock; |
| 24 | 24 |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 Initialize(video_stream_.get(), _, _, _, _, _, _, _, _)) | 436 Initialize(video_stream_.get(), _, _, _, _, _, _, _, _)) |
| 437 .WillOnce(DoAll(AudioError(&audio_error_cb_, PIPELINE_ERROR_DECODE), | 437 .WillOnce(DoAll(AudioError(&audio_error_cb_, PIPELINE_ERROR_DECODE), |
| 438 SaveArg<4>(&video_buffering_state_cb_), | 438 SaveArg<4>(&video_buffering_state_cb_), |
| 439 SaveArg<6>(&video_ended_cb_), | 439 SaveArg<6>(&video_ended_cb_), |
| 440 RunCallback<1>(PIPELINE_OK))); | 440 RunCallback<1>(PIPELINE_OK))); |
| 441 | 441 |
| 442 InitializeAndExpect(PIPELINE_ERROR_DECODE); | 442 InitializeAndExpect(PIPELINE_ERROR_DECODE); |
| 443 } | 443 } |
| 444 | 444 |
| 445 } // namespace media | 445 } // namespace media |
| OLD | NEW |