OLD | NEW |
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 3133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3144 expected_width_ = kWidth; | 3144 expected_width_ = kWidth; |
3145 expected_height_ = kHeight; | 3145 expected_height_ = kHeight; |
3146 *width = kWidth; | 3146 *width = kWidth; |
3147 *height = kHeight; | 3147 *height = kHeight; |
3148 } | 3148 } |
3149 } test; | 3149 } test; |
3150 | 3150 |
3151 RunBaseTest(&test); | 3151 RunBaseTest(&test); |
3152 } | 3152 } |
3153 | 3153 |
3154 TEST_F(VideoSendStreamTest, Vp9FlexModeRefCount) { | 3154 #if defined(WEBRTC_ANDROID) |
| 3155 // Crashes on Android; bugs.webrtc.org/7401 |
| 3156 #define MAYBE_Vp9FlexModeRefCount DISABLED_Vp9FlexModeRefCount |
| 3157 #else |
| 3158 #define MAYBE_Vp9FlexModeRefCount Vp9FlexModeRefCount |
| 3159 #endif |
| 3160 TEST_F(VideoSendStreamTest, MAYBE_Vp9FlexModeRefCount) { |
3155 class FlexibleMode : public Vp9HeaderObserver { | 3161 class FlexibleMode : public Vp9HeaderObserver { |
3156 void ModifyVideoConfigsHook( | 3162 void ModifyVideoConfigsHook( |
3157 VideoSendStream::Config* send_config, | 3163 VideoSendStream::Config* send_config, |
3158 std::vector<VideoReceiveStream::Config>* receive_configs, | 3164 std::vector<VideoReceiveStream::Config>* receive_configs, |
3159 VideoEncoderConfig* encoder_config) override { | 3165 VideoEncoderConfig* encoder_config) override { |
3160 encoder_config->content_type = VideoEncoderConfig::ContentType::kScreen; | 3166 encoder_config->content_type = VideoEncoderConfig::ContentType::kScreen; |
3161 vp9_settings_.flexibleMode = true; | 3167 vp9_settings_.flexibleMode = true; |
3162 vp9_settings_.numberOfTemporalLayers = 1; | 3168 vp9_settings_.numberOfTemporalLayers = 1; |
3163 vp9_settings_.numberOfSpatialLayers = 2; | 3169 vp9_settings_.numberOfSpatialLayers = 2; |
3164 } | 3170 } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3284 rtc::CriticalSection crit_; | 3290 rtc::CriticalSection crit_; |
3285 uint32_t max_bitrate_bps_ GUARDED_BY(&crit_); | 3291 uint32_t max_bitrate_bps_ GUARDED_BY(&crit_); |
3286 bool first_packet_sent_ GUARDED_BY(&crit_); | 3292 bool first_packet_sent_ GUARDED_BY(&crit_); |
3287 rtc::Event bitrate_changed_event_; | 3293 rtc::Event bitrate_changed_event_; |
3288 } test; | 3294 } test; |
3289 | 3295 |
3290 RunBaseTest(&test); | 3296 RunBaseTest(&test); |
3291 } | 3297 } |
3292 | 3298 |
3293 } // namespace webrtc | 3299 } // namespace webrtc |
OLD | NEW |