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

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

Issue 2458863002: Start probes only after network is connected. (Closed)
Patch Set: sync Created 4 years 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/end_to_end_tests.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 (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> // max 10 #include <algorithm> // max
(...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 rtc::Event encoder_init_; 1829 rtc::Event encoder_init_;
1830 rtc::Event bitrate_changed_; 1830 rtc::Event bitrate_changed_;
1831 rtc::Optional<int> bitrate_kbps_ GUARDED_BY(crit_); 1831 rtc::Optional<int> bitrate_kbps_ GUARDED_BY(crit_);
1832 }; 1832 };
1833 1833
1834 CreateSenderCall(Call::Config(&event_log_)); 1834 CreateSenderCall(Call::Config(&event_log_));
1835 1835
1836 test::NullTransport transport; 1836 test::NullTransport transport;
1837 CreateSendConfig(1, 0, 0, &transport); 1837 CreateSendConfig(1, 0, 0, &transport);
1838 1838
1839 sender_call_->SignalChannelNetworkState(MediaType::VIDEO, kNetworkUp);
1840
1839 StartStopBitrateObserver encoder; 1841 StartStopBitrateObserver encoder;
1840 video_send_config_.encoder_settings.encoder = &encoder; 1842 video_send_config_.encoder_settings.encoder = &encoder;
1841 video_send_config_.encoder_settings.internal_source = true; 1843 video_send_config_.encoder_settings.internal_source = true;
1842 1844
1843 CreateVideoStreams(); 1845 CreateVideoStreams();
1844 1846
1845 EXPECT_TRUE(encoder.WaitForEncoderInit()); 1847 EXPECT_TRUE(encoder.WaitForEncoderInit());
1846 1848
1847 video_send_stream_->Start(); 1849 video_send_stream_->Start();
1848 EXPECT_TRUE(encoder.WaitBitrateChanged(true)); 1850 EXPECT_TRUE(encoder.WaitBitrateChanged(true));
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 RequestSourceRotateIfVideoOrientationExtensionNotSupported) { 3170 RequestSourceRotateIfVideoOrientationExtensionNotSupported) {
3169 TestRequestSourceRotateVideo(false); 3171 TestRequestSourceRotateVideo(false);
3170 } 3172 }
3171 3173
3172 TEST_F(VideoSendStreamTest, 3174 TEST_F(VideoSendStreamTest,
3173 DoNotRequestsRotationIfVideoOrientationExtensionSupported) { 3175 DoNotRequestsRotationIfVideoOrientationExtensionSupported) {
3174 TestRequestSourceRotateVideo(true); 3176 TestRequestSourceRotateVideo(true);
3175 } 3177 }
3176 3178
3177 } // namespace webrtc 3179 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698