OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |