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

Side by Side Diff: webrtc/video/video_receive_stream_unittest.cc

Issue 2915903003: Delete unneeded includes of system_wrappers/include/sleep.h (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « webrtc/test/frame_generator_capturer.cc ('k') | 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 /* 1 /*
2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2017 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "webrtc/test/gtest.h" 13 #include "webrtc/test/gtest.h"
14 #include "webrtc/test/gmock.h" 14 #include "webrtc/test/gmock.h"
15 15
16 #include "webrtc/api/video_codecs/video_decoder.h" 16 #include "webrtc/api/video_codecs/video_decoder.h"
17 #include "webrtc/base/criticalsection.h" 17 #include "webrtc/base/criticalsection.h"
18 #include "webrtc/base/event.h" 18 #include "webrtc/base/event.h"
19 #include "webrtc/media/base/fakevideorenderer.h" 19 #include "webrtc/media/base/fakevideorenderer.h"
20 #include "webrtc/modules/pacing/packet_router.h" 20 #include "webrtc/modules/pacing/packet_router.h"
21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h"
22 #include "webrtc/modules/utility/include/process_thread.h" 22 #include "webrtc/modules/utility/include/process_thread.h"
23 #include "webrtc/video/call_stats.h" 23 #include "webrtc/video/call_stats.h"
24 #include "webrtc/video/video_receive_stream.h" 24 #include "webrtc/video/video_receive_stream.h"
25 #include "webrtc/system_wrappers/include/clock.h" 25 #include "webrtc/system_wrappers/include/clock.h"
26 #include "webrtc/system_wrappers/include/sleep.h"
27 #include "webrtc/test/field_trial.h" 26 #include "webrtc/test/field_trial.h"
28 27
29 using testing::_; 28 using testing::_;
30 using testing::Invoke; 29 using testing::Invoke;
31 30
32 constexpr int kDefaultTimeOutMs = 50; 31 constexpr int kDefaultTimeOutMs = 50;
33 32
34 namespace webrtc { 33 namespace webrtc {
35 34
36 namespace { 35 namespace {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 video_receive_stream_->Start(); 129 video_receive_stream_->Start();
131 EXPECT_CALL(mock_h264_video_decoder_, Decode(_, false, _, _, _)); 130 EXPECT_CALL(mock_h264_video_decoder_, Decode(_, false, _, _, _));
132 RtpPacketReceived parsed_packet; 131 RtpPacketReceived parsed_packet;
133 ASSERT_TRUE(parsed_packet.Parse(rtppacket.data(), rtppacket.size())); 132 ASSERT_TRUE(parsed_packet.Parse(rtppacket.data(), rtppacket.size()));
134 video_receive_stream_->OnRtpPacket(parsed_packet); 133 video_receive_stream_->OnRtpPacket(parsed_packet);
135 EXPECT_CALL(mock_h264_video_decoder_, Release()); 134 EXPECT_CALL(mock_h264_video_decoder_, Release());
136 // Make sure the decoder thread had a chance to run. 135 // Make sure the decoder thread had a chance to run.
137 init_decode_event_.Wait(kDefaultTimeOutMs); 136 init_decode_event_.Wait(kDefaultTimeOutMs);
138 } 137 }
139 } // namespace webrtc 138 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/frame_generator_capturer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698