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

Side by Side Diff: talk/media/webrtc/webrtcvideoengine2_unittest.cc

Issue 1226123005: Define Stream base classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Code review follow-up 3 Created 5 years, 5 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 | « talk/media/webrtc/webrtcvideoengine2.cc ('k') | webrtc/audio_receive_stream.h » ('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 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2189 cricket::VideoOptions options1; 2189 cricket::VideoOptions options1;
2190 EXPECT_TRUE(channel_->SetOptions(options1)); 2190 EXPECT_TRUE(channel_->SetOptions(options1));
2191 EXPECT_EQ(rtc::DSCP_AF41, network_interface->dscp()); 2191 EXPECT_EQ(rtc::DSCP_AF41, network_interface->dscp());
2192 options.dscp.Set(false); 2192 options.dscp.Set(false);
2193 EXPECT_TRUE(channel_->SetOptions(options)); 2193 EXPECT_TRUE(channel_->SetOptions(options));
2194 EXPECT_EQ(rtc::DSCP_DEFAULT, network_interface->dscp()); 2194 EXPECT_EQ(rtc::DSCP_DEFAULT, network_interface->dscp());
2195 channel_->SetInterface(NULL); 2195 channel_->SetInterface(NULL);
2196 } 2196 }
2197 2197
2198 TEST_F(WebRtcVideoChannel2Test, OnReadyToSendSignalsNetworkState) { 2198 TEST_F(WebRtcVideoChannel2Test, OnReadyToSendSignalsNetworkState) {
2199 EXPECT_EQ(webrtc::Call::kNetworkUp, fake_call_->GetNetworkState()); 2199 EXPECT_EQ(webrtc::kNetworkUp, fake_call_->GetNetworkState());
2200 2200
2201 channel_->OnReadyToSend(false); 2201 channel_->OnReadyToSend(false);
2202 EXPECT_EQ(webrtc::Call::kNetworkDown, fake_call_->GetNetworkState()); 2202 EXPECT_EQ(webrtc::kNetworkDown, fake_call_->GetNetworkState());
2203 2203
2204 channel_->OnReadyToSend(true); 2204 channel_->OnReadyToSend(true);
2205 EXPECT_EQ(webrtc::Call::kNetworkUp, fake_call_->GetNetworkState()); 2205 EXPECT_EQ(webrtc::kNetworkUp, fake_call_->GetNetworkState());
2206 } 2206 }
2207 2207
2208 TEST_F(WebRtcVideoChannel2Test, GetStatsReportsSentCodecName) { 2208 TEST_F(WebRtcVideoChannel2Test, GetStatsReportsSentCodecName) {
2209 std::vector<cricket::VideoCodec> codecs; 2209 std::vector<cricket::VideoCodec> codecs;
2210 codecs.push_back(kVp8Codec); 2210 codecs.push_back(kVp8Codec);
2211 EXPECT_TRUE(channel_->SetSendCodecs(codecs)); 2211 EXPECT_TRUE(channel_->SetSendCodecs(codecs));
2212 2212
2213 AddSendStream(); 2213 AddSendStream();
2214 2214
2215 cricket::VideoMediaInfo info; 2215 cricket::VideoMediaInfo info;
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
3082 // Ensures that the correct settings are applied to the codec when two temporal 3082 // Ensures that the correct settings are applied to the codec when two temporal
3083 // layer screencasting is enabled, and that the correct simulcast settings are 3083 // layer screencasting is enabled, and that the correct simulcast settings are
3084 // reapplied when disabling screencasting. 3084 // reapplied when disabling screencasting.
3085 TEST_F(WebRtcVideoChannel2SimulcastTest, 3085 TEST_F(WebRtcVideoChannel2SimulcastTest,
3086 DISABLED_TwoTemporalLayerScreencastSettings) { 3086 DISABLED_TwoTemporalLayerScreencastSettings) {
3087 // TODO(pbos): Implement. 3087 // TODO(pbos): Implement.
3088 FAIL() << "Not implemented."; 3088 FAIL() << "Not implemented.";
3089 } 3089 }
3090 3090
3091 } // namespace cricket 3091 } // namespace cricket
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvideoengine2.cc ('k') | webrtc/audio_receive_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698