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 | 10 |
11 #include "gtest/gtest.h" | 11 #include "gtest/gtest.h" |
12 #include "vpx/vpx_encoder.h" | 12 #include "vpx/vpx_encoder.h" |
13 #include "vpx/vp8cx.h" | 13 #include "vpx/vp8cx.h" |
14 #include "webrtc/base/scoped_ptr.h" | 14 #include "webrtc/base/scoped_ptr.h" |
15 #include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h" | 15 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
16 #include "webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h" | 16 #include "webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h" |
17 #include "webrtc/modules/video_coding/utility/include/mock/mock_frame_dropper.h" | 17 #include "webrtc/modules/video_coding/utility/include/mock/mock_frame_dropper.h" |
18 | 18 |
19 using ::testing::_; | 19 using ::testing::_; |
20 using ::testing::NiceMock; | 20 using ::testing::NiceMock; |
21 using ::testing::Return; | 21 using ::testing::Return; |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 // 5 frames per second at 90 kHz. | 25 // 5 frames per second at 90 kHz. |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 | 436 |
437 layers_->EncodeFlags(timestamp); | 437 layers_->EncodeFlags(timestamp); |
438 timestamp += kTimestampDelta5Fps; | 438 timestamp += kTimestampDelta5Fps; |
439 EXPECT_TRUE(layers_->UpdateConfiguration(&cfg)); | 439 EXPECT_TRUE(layers_->UpdateConfiguration(&cfg)); |
440 layers_->PopulateCodecSpecific(false, &vp8_info, timestamp); | 440 layers_->PopulateCodecSpecific(false, &vp8_info, timestamp); |
441 EXPECT_EQ(cfg.rc_max_quantizer, static_cast<unsigned int>(kDefaultQp)); | 441 EXPECT_EQ(cfg.rc_max_quantizer, static_cast<unsigned int>(kDefaultQp)); |
442 layers_->FrameEncoded(frame_size_, timestamp, kDefaultQp); | 442 layers_->FrameEncoded(frame_size_, timestamp, kDefaultQp); |
443 } | 443 } |
444 | 444 |
445 } // namespace webrtc | 445 } // namespace webrtc |
OLD | NEW |