Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: media/remoting/remote_renderer_impl_unittest.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/remoting/remote_renderer_impl.cc ('k') | mojo/public/cpp/bindings/tests/bindings_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698