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

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

Issue 2995433002: Rename ViEEncoder to VideoStreamEncoder. (Closed)
Patch Set: Created 3 years, 4 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/video_send_stream.cc ('k') | webrtc/video/video_stream_encoder.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 * 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 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 EXPECT_EQ(kVideoCodecConfigObserverNumberOfTemporalLayers, 2364 EXPECT_EQ(kVideoCodecConfigObserverNumberOfTemporalLayers,
2365 config.VP8().numberOfTemporalLayers); 2365 config.VP8().numberOfTemporalLayers);
2366 2366
2367 for (unsigned char i = 0; i < config.numberOfSimulcastStreams; ++i) { 2367 for (unsigned char i = 0; i < config.numberOfSimulcastStreams; ++i) {
2368 EXPECT_EQ(kVideoCodecConfigObserverNumberOfTemporalLayers, 2368 EXPECT_EQ(kVideoCodecConfigObserverNumberOfTemporalLayers,
2369 config.simulcastStream[i].numberOfTemporalLayers); 2369 config.simulcastStream[i].numberOfTemporalLayers);
2370 } 2370 }
2371 2371
2372 // Set expected temporal layers as they should have been set when 2372 // Set expected temporal layers as they should have been set when
2373 // reconfiguring the encoder and not match the set config. Also copy the 2373 // reconfiguring the encoder and not match the set config. Also copy the
2374 // TemporalLayersFactory pointer that has been injected by ViEEncoder. 2374 // TemporalLayersFactory pointer that has been injected by VideoStreamEncoder.
2375 VideoCodecVP8 encoder_settings = encoder_settings_; 2375 VideoCodecVP8 encoder_settings = encoder_settings_;
2376 encoder_settings.numberOfTemporalLayers = 2376 encoder_settings.numberOfTemporalLayers =
2377 kVideoCodecConfigObserverNumberOfTemporalLayers; 2377 kVideoCodecConfigObserverNumberOfTemporalLayers;
2378 encoder_settings.tl_factory = config.VP8().tl_factory; 2378 encoder_settings.tl_factory = config.VP8().tl_factory;
2379 EXPECT_EQ( 2379 EXPECT_EQ(
2380 0, memcmp(&config.VP8(), &encoder_settings, sizeof(encoder_settings_))); 2380 0, memcmp(&config.VP8(), &encoder_settings, sizeof(encoder_settings_)));
2381 } 2381 }
2382 2382
2383 template <> 2383 template <>
2384 rtc::scoped_refptr<VideoEncoderConfig::EncoderSpecificSettings> 2384 rtc::scoped_refptr<VideoEncoderConfig::EncoderSpecificSettings>
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
3412 capturer_ = frame_generator_capturer; 3412 capturer_ = frame_generator_capturer;
3413 } 3413 }
3414 3414
3415 test::FrameGeneratorCapturer* capturer_ = nullptr; 3415 test::FrameGeneratorCapturer* capturer_ = nullptr;
3416 } test; 3416 } test;
3417 3417
3418 RunBaseTest(&test); 3418 RunBaseTest(&test);
3419 } 3419 }
3420 3420
3421 } // namespace webrtc 3421 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/video_stream_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698