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

Side by Side Diff: webrtc/test/testsupport/frame_reader_unittest.cc

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Make rotation check clearer. Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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/test/testsupport/frame_reader.h" 11 #include "webrtc/test/testsupport/frame_reader.h"
12 12
13 #include "webrtc/api/video/i420_buffer.h"
13 #include "webrtc/test/gtest.h" 14 #include "webrtc/test/gtest.h"
14 #include "webrtc/test/testsupport/fileutils.h" 15 #include "webrtc/test/testsupport/fileutils.h"
15 #include "webrtc/common_video/include/video_frame_buffer.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 namespace test { 18 namespace test {
19 19
20 const std::string kInputFileContents = "baz"; 20 const std::string kInputFileContents = "baz";
21 const size_t kFrameLength = 3; 21 const size_t kFrameLength = 3;
22 22
23 class FrameReaderTest: public testing::Test { 23 class FrameReaderTest: public testing::Test {
24 protected: 24 protected:
25 FrameReaderTest() {} 25 FrameReaderTest() {}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ASSERT_FALSE(frame_reader_->ReadFrame()); // End of file 61 ASSERT_FALSE(frame_reader_->ReadFrame()); // End of file
62 } 62 }
63 63
64 TEST_F(FrameReaderTest, ReadFrameUninitialized) { 64 TEST_F(FrameReaderTest, ReadFrameUninitialized) {
65 FrameReaderImpl file_reader(temp_filename_, 1, 1); 65 FrameReaderImpl file_reader(temp_filename_, 1, 1);
66 ASSERT_FALSE(file_reader.ReadFrame()); 66 ASSERT_FALSE(file_reader.ReadFrame());
67 } 67 }
68 68
69 } // namespace test 69 } // namespace test
70 } // namespace webrtc 70 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/testsupport/frame_reader.cc ('k') | webrtc/test/testsupport/metrics/video_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698