| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 "webrtc/video_encoder.h" | 11 #include "webrtc/video_encoder.h" |
| 12 | 12 |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "webrtc/modules/video_coding/codecs/interface/video_error_codes.h" | 14 #include "webrtc/modules/video_coding/include/video_error_codes.h" |
| 15 | 15 |
| 16 namespace webrtc { | 16 namespace webrtc { |
| 17 | 17 |
| 18 const int kWidth = 320; | 18 const int kWidth = 320; |
| 19 const int kHeight = 240; | 19 const int kHeight = 240; |
| 20 const size_t kMaxPayloadSize = 800; | 20 const size_t kMaxPayloadSize = 800; |
| 21 | 21 |
| 22 class VideoEncoderSoftwareFallbackWrapperTest : public ::testing::Test { | 22 class VideoEncoderSoftwareFallbackWrapperTest : public ::testing::Test { |
| 23 protected: | 23 protected: |
| 24 VideoEncoderSoftwareFallbackWrapperTest() | 24 VideoEncoderSoftwareFallbackWrapperTest() |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 253 |
| 254 TEST_F(VideoEncoderSoftwareFallbackWrapperTest, | 254 TEST_F(VideoEncoderSoftwareFallbackWrapperTest, |
| 255 SupportsNativeHandleNotForwardedDuringFallback) { | 255 SupportsNativeHandleNotForwardedDuringFallback) { |
| 256 UtilizeFallbackEncoder(); | 256 UtilizeFallbackEncoder(); |
| 257 fallback_wrapper_.SupportsNativeHandle(); | 257 fallback_wrapper_.SupportsNativeHandle(); |
| 258 EXPECT_EQ(0, fake_encoder_.supports_native_handle_count_); | 258 EXPECT_EQ(0, fake_encoder_.supports_native_handle_count_); |
| 259 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, fallback_wrapper_.Release()); | 259 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, fallback_wrapper_.Release()); |
| 260 } | 260 } |
| 261 | 261 |
| 262 } // namespace webrtc | 262 } // namespace webrtc |
| OLD | NEW |