| 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 #include <stdlib.h> | 12 #include <stdlib.h> |
| 13 | 13 |
| 14 #include <fstream> | 14 #include <fstream> |
| 15 #include <memory> | 15 #include <memory> |
| 16 | 16 |
| 17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 18 #include "webrtc/rtc_tools/frame_editing/frame_editing_lib.h" |
| 18 #include "webrtc/test/gtest.h" | 19 #include "webrtc/test/gtest.h" |
| 19 #include "webrtc/test/testsupport/fileutils.h" | 20 #include "webrtc/test/testsupport/fileutils.h" |
| 20 #include "webrtc/tools/frame_editing/frame_editing_lib.h" | |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 namespace test { | 23 namespace test { |
| 24 | 24 |
| 25 const int kWidth = 352; | 25 const int kWidth = 352; |
| 26 const int kHeight = 288; | 26 const int kHeight = 288; |
| 27 const size_t kFrameSize = CalcBufferSize(VideoType::kI420, kWidth, kHeight); | 27 const size_t kFrameSize = CalcBufferSize(VideoType::kI420, kWidth, kHeight); |
| 28 | 28 |
| 29 class FrameEditingTest : public ::testing::Test { | 29 class FrameEditingTest : public ::testing::Test { |
| 30 protected: | 30 protected: |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 EXPECT_EQ(kFrameSize, num_bytes_read_); | 207 EXPECT_EQ(kFrameSize, num_bytes_read_); |
| 208 EXPECT_EQ(0, memcmp(original_buffer_.get(), edited_buffer_.get(), | 208 EXPECT_EQ(0, memcmp(original_buffer_.get(), edited_buffer_.get(), |
| 209 kFrameSize)); | 209 kFrameSize)); |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 CompareToTheEnd(edited_fid_, original_fid_, &original_buffer_, | 212 CompareToTheEnd(edited_fid_, original_fid_, &original_buffer_, |
| 213 &edited_buffer_); | 213 &edited_buffer_); |
| 214 } | 214 } |
| 215 } // namespace test | 215 } // namespace test |
| 216 } // namespace webrtc | 216 } // namespace webrtc |
| OLD | NEW |