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

Side by Side Diff: remoting/protocol/video_frame_pump_unittest.cc

Issue 2491773007: [Chromoting] Build break after change 2494013003 (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/protocol/video_frame_pump.h" 5 #include "remoting/protocol/video_frame_pump.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
15 #include "remoting/base/auto_thread.h" 15 #include "remoting/base/auto_thread.h"
16 #include "remoting/base/auto_thread_task_runner.h" 16 #include "remoting/base/auto_thread_task_runner.h"
17 #include "remoting/codec/video_encoder.h" 17 #include "remoting/codec/video_encoder.h"
18 #include "remoting/codec/video_encoder_verbatim.h" 18 #include "remoting/codec/video_encoder_verbatim.h"
19 #include "remoting/proto/control.pb.h" 19 #include "remoting/proto/control.pb.h"
20 #include "remoting/proto/video.pb.h" 20 #include "remoting/proto/video.pb.h"
21 #include "remoting/protocol/fake_desktop_capturer.h" 21 #include "remoting/protocol/fake_desktop_capturer.h"
22 #include "remoting/protocol/protocol_mock_objects.h" 22 #include "remoting/protocol/protocol_mock_objects.h"
23 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 25 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
26 #include "third_party/webrtc/modules/desktop_capture/screen_capturer_mock_object s.h"
27 26
28 using ::testing::_; 27 using ::testing::_;
29 using ::testing::AtLeast; 28 using ::testing::AtLeast;
30 using ::testing::DoAll; 29 using ::testing::DoAll;
31 using ::testing::Expectation; 30 using ::testing::Expectation;
32 using ::testing::InvokeWithoutArgs; 31 using ::testing::InvokeWithoutArgs;
33 using ::testing::Return; 32 using ::testing::Return;
34 33
35 namespace remoting { 34 namespace remoting {
36 namespace protocol { 35 namespace protocol {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Start video frame capture. 246 // Start video frame capture.
248 pump_.reset(new VideoFramePump(encode_task_runner_, std::move(capturer), 247 pump_.reset(new VideoFramePump(encode_task_runner_, std::move(capturer),
249 std::move(encoder), &video_stub_)); 248 std::move(encoder), &video_stub_));
250 249
251 // Run MessageLoop until the first frame is received. 250 // Run MessageLoop until the first frame is received.
252 run_loop.Run(); 251 run_loop.Run();
253 } 252 }
254 253
255 } // namespace protocol 254 } // namespace protocol
256 } // namespace remoting 255 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698