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

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

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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/video/encoded_frame_callback_adapter.cc ('k') | webrtc/video/full_stack.cc » ('j') | 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 (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #include <algorithm> 10 #include <algorithm>
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 bool rtx_padding_observed_; 1379 bool rtx_padding_observed_;
1380 }; 1380 };
1381 1381
1382 class TransportSequenceNumberTester : public MultiStreamTest { 1382 class TransportSequenceNumberTester : public MultiStreamTest {
1383 public: 1383 public:
1384 TransportSequenceNumberTester() : observer_(nullptr) {} 1384 TransportSequenceNumberTester() : observer_(nullptr) {}
1385 virtual ~TransportSequenceNumberTester() {} 1385 virtual ~TransportSequenceNumberTester() {}
1386 1386
1387 protected: 1387 protected:
1388 void Wait() override { 1388 void Wait() override {
1389 DCHECK(observer_ != nullptr); 1389 RTC_DCHECK(observer_ != nullptr);
1390 EXPECT_EQ(EventTypeWrapper::kEventSignaled, observer_->Wait()); 1390 EXPECT_EQ(EventTypeWrapper::kEventSignaled, observer_->Wait());
1391 } 1391 }
1392 1392
1393 void UpdateSendConfig( 1393 void UpdateSendConfig(
1394 size_t stream_index, 1394 size_t stream_index,
1395 VideoSendStream::Config* send_config, 1395 VideoSendStream::Config* send_config,
1396 VideoEncoderConfig* encoder_config, 1396 VideoEncoderConfig* encoder_config,
1397 test::FrameGeneratorCapturer** frame_generator) override { 1397 test::FrameGeneratorCapturer** frame_generator) override {
1398 send_config->rtp.extensions.clear(); 1398 send_config->rtp.extensions.clear();
1399 send_config->rtp.extensions.push_back( 1399 send_config->rtp.extensions.push_back(
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 assert(stats.current_payload_type == -1 || 2227 assert(stats.current_payload_type == -1 ||
2228 stats.current_payload_type == kFakeSendPayloadType); 2228 stats.current_payload_type == kFakeSendPayloadType);
2229 receive_stats_filled_["IncomingPayloadType"] |= 2229 receive_stats_filled_["IncomingPayloadType"] |=
2230 stats.current_payload_type == kFakeSendPayloadType; 2230 stats.current_payload_type == kFakeSendPayloadType;
2231 } 2231 }
2232 2232
2233 return AllStatsFilled(receive_stats_filled_); 2233 return AllStatsFilled(receive_stats_filled_);
2234 } 2234 }
2235 2235
2236 bool CheckSendStats() { 2236 bool CheckSendStats() {
2237 DCHECK(send_stream_ != nullptr); 2237 RTC_DCHECK(send_stream_ != nullptr);
2238 VideoSendStream::Stats stats = send_stream_->GetStats(); 2238 VideoSendStream::Stats stats = send_stream_->GetStats();
2239 2239
2240 send_stats_filled_["NumStreams"] |= 2240 send_stats_filled_["NumStreams"] |=
2241 stats.substreams.size() == expected_send_ssrcs_.size(); 2241 stats.substreams.size() == expected_send_ssrcs_.size();
2242 2242
2243 send_stats_filled_["CpuOveruseMetrics"] |= 2243 send_stats_filled_["CpuOveruseMetrics"] |=
2244 stats.avg_encode_time_ms != 0 || stats.encode_usage_percent != 0; 2244 stats.avg_encode_time_ms != 0 || stats.encode_usage_percent != 0;
2245 2245
2246 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it = 2246 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it =
2247 stats.substreams.begin(); 2247 stats.substreams.begin();
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) 3047 EXPECT_TRUE(default_receive_config.rtp.rtx.empty())
3048 << "Enabling RTX requires rtpmap: rtx negotiation."; 3048 << "Enabling RTX requires rtpmap: rtx negotiation.";
3049 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) 3049 EXPECT_TRUE(default_receive_config.rtp.extensions.empty())
3050 << "Enabling RTP extensions require negotiation."; 3050 << "Enabling RTP extensions require negotiation.";
3051 3051
3052 VerifyEmptyNackConfig(default_receive_config.rtp.nack); 3052 VerifyEmptyNackConfig(default_receive_config.rtp.nack);
3053 VerifyEmptyFecConfig(default_receive_config.rtp.fec); 3053 VerifyEmptyFecConfig(default_receive_config.rtp.fec);
3054 } 3054 }
3055 3055
3056 } // namespace webrtc 3056 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/encoded_frame_callback_adapter.cc ('k') | webrtc/video/full_stack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698