| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <stdio.h> | 11 #include <stdio.h> |
| 12 | 12 |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "webrtc/base/scoped_ptr.h" | 14 #include "webrtc/base/scoped_ptr.h" |
| 15 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 15 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 16 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 16 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
| 17 #include "webrtc/system_wrappers/interface/tick_util.h" | 17 #include "webrtc/system_wrappers/include/tick_util.h" |
| 18 #include "webrtc/test/testsupport/fileutils.h" | 18 #include "webrtc/test/testsupport/fileutils.h" |
| 19 #include "webrtc/test/testsupport/gtest_disable.h" | 19 #include "webrtc/test/testsupport/gtest_disable.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 enum { kMaxWaitEncTimeMs = 100 }; | 23 enum { kMaxWaitEncTimeMs = 100 }; |
| 24 enum { kMaxWaitDecTimeMs = 25 }; | 24 enum { kMaxWaitDecTimeMs = 25 }; |
| 25 | 25 |
| 26 static const uint32_t kTestTimestamp = 123; | 26 static const uint32_t kTestTimestamp = 123; |
| 27 static const int64_t kTestNtpTimeMs = 456; | 27 static const int64_t kTestNtpTimeMs = 456; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 EXPECT_EQ(0, decoder_->Decode(encoded_frame_, false, NULL)); | 265 EXPECT_EQ(0, decoder_->Decode(encoded_frame_, false, NULL)); |
| 266 rtc::scoped_ptr<uint8_t[]> second_frame_buffer(new uint8_t[length]); | 266 rtc::scoped_ptr<uint8_t[]> second_frame_buffer(new uint8_t[length]); |
| 267 ExtractBuffer(decoded_frame_, length, second_frame_buffer.get()); | 267 ExtractBuffer(decoded_frame_, length, second_frame_buffer.get()); |
| 268 | 268 |
| 269 EXPECT_EQ( | 269 EXPECT_EQ( |
| 270 0, memcmp(second_frame_buffer.get(), first_frame_buffer.get(), length)); | 270 0, memcmp(second_frame_buffer.get(), first_frame_buffer.get(), length)); |
| 271 } | 271 } |
| 272 | 272 |
| 273 } // namespace webrtc | 273 } // namespace webrtc |
| OLD | NEW |