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/remote_renderer_impl.h" | 5 #include "media/remoting/remote_renderer_impl.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" |
8 #include "media/base/pipeline_status.h" | 9 #include "media/base/pipeline_status.h" |
9 #include "media/base/test_helpers.h" | 10 #include "media/base/test_helpers.h" |
10 #include "media/remoting/fake_remoting_controller.h" | 11 #include "media/remoting/fake_remoting_controller.h" |
11 #include "media/remoting/fake_remoting_demuxer_stream_provider.h" | 12 #include "media/remoting/fake_remoting_demuxer_stream_provider.h" |
12 #include "media/remoting/remoting_renderer_controller.h" | 13 #include "media/remoting/remoting_renderer_controller.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 using testing::_; | 17 using testing::_; |
17 using testing::Invoke; | 18 using testing::Invoke; |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 // Issues RPC_RC_ONDURATIONCHANGE RPC message. | 552 // Issues RPC_RC_ONDURATIONCHANGE RPC message. |
552 EXPECT_CALL(*render_client_, OnDurationChange(_)).Times(0); | 553 EXPECT_CALL(*render_client_, OnDurationChange(_)).Times(0); |
553 std::unique_ptr<remoting::pb::RpcMessage> rpc(new remoting::pb::RpcMessage()); | 554 std::unique_ptr<remoting::pb::RpcMessage> rpc(new remoting::pb::RpcMessage()); |
554 rpc->set_handle(5); | 555 rpc->set_handle(5); |
555 rpc->set_proc(remoting::pb::RpcMessage::RPC_RC_ONDURATIONCHANGE); | 556 rpc->set_proc(remoting::pb::RpcMessage::RPC_RC_ONDURATIONCHANGE); |
556 rpc->set_integer64_value(-345); | 557 rpc->set_integer64_value(-345); |
557 OnReceivedRpc(std::move(rpc)); | 558 OnReceivedRpc(std::move(rpc)); |
558 RunPendingTasks(); | 559 RunPendingTasks(); |
559 } | 560 } |
560 } // namespace media | 561 } // namespace media |
OLD | NEW |