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

Side by Side Diff: webrtc/video/vie_encoder_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
« no previous file with comments | « webrtc/video/vie_encoder.h ('k') | webrtc/video_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 <limits> 11 #include <limits>
12 #include <utility> 12 #include <utility>
13 13
14 #include "webrtc/api/video/i420_buffer.h"
14 #include "webrtc/base/logging.h" 15 #include "webrtc/base/logging.h"
15 #include "webrtc/system_wrappers/include/metrics_default.h" 16 #include "webrtc/system_wrappers/include/metrics_default.h"
16 #include "webrtc/test/encoder_settings.h" 17 #include "webrtc/test/encoder_settings.h"
17 #include "webrtc/test/fake_encoder.h" 18 #include "webrtc/test/fake_encoder.h"
18 #include "webrtc/test/frame_generator.h" 19 #include "webrtc/test/frame_generator.h"
19 #include "webrtc/test/gtest.h" 20 #include "webrtc/test/gtest.h"
20 #include "webrtc/video/send_statistics_proxy.h" 21 #include "webrtc/video/send_statistics_proxy.h"
21 #include "webrtc/video/vie_encoder.h" 22 #include "webrtc/video/vie_encoder.h"
22 23
23 namespace { 24 namespace {
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 vie_encoder_->Stop(); 973 vie_encoder_->Stop();
973 974
974 stats_proxy_.reset(); 975 stats_proxy_.reset();
975 EXPECT_EQ(1, 976 EXPECT_EQ(1,
976 metrics::NumSamples("WebRTC.Video.CpuLimitedResolutionInPercent")); 977 metrics::NumSamples("WebRTC.Video.CpuLimitedResolutionInPercent"));
977 EXPECT_EQ( 978 EXPECT_EQ(
978 1, metrics::NumEvents("WebRTC.Video.CpuLimitedResolutionInPercent", 50)); 979 1, metrics::NumEvents("WebRTC.Video.CpuLimitedResolutionInPercent", 50));
979 } 980 }
980 981
981 } // namespace webrtc 982 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/vie_encoder.h ('k') | webrtc/video_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698