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