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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/default_temporal_layers_unittest.cc

Issue 1417283007: modules/video_coding refactorings (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix the other copy of the mock include header Created 5 years, 1 month 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 11
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h" 13 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
14 #include "webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.h" 14 #include "webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.h"
15 15
16 #include "vpx/vpx_encoder.h" 16 #include "vpx/vpx_encoder.h"
17 #include "vpx/vp8cx.h" 17 #include "vpx/vp8cx.h"
18 18
19 namespace webrtc { 19 namespace webrtc {
20 20
21 enum { 21 enum {
22 kTemporalUpdateLast = VP8_EFLAG_NO_UPD_GF | 22 kTemporalUpdateLast = VP8_EFLAG_NO_UPD_GF |
23 VP8_EFLAG_NO_UPD_ARF | 23 VP8_EFLAG_NO_UPD_ARF |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 EXPECT_EQ(expected_temporal_idx[i], vp8_info.temporalIdx); 208 EXPECT_EQ(expected_temporal_idx[i], vp8_info.temporalIdx);
209 EXPECT_EQ(true, vp8_info.layerSync); 209 EXPECT_EQ(true, vp8_info.layerSync);
210 timestamp += 3000; 210 timestamp += 3000;
211 } 211 }
212 EXPECT_EQ(expected_flags[7], tl.EncodeFlags(timestamp)); 212 EXPECT_EQ(expected_flags[7], tl.EncodeFlags(timestamp));
213 tl.PopulateCodecSpecific(false, &vp8_info, 0); 213 tl.PopulateCodecSpecific(false, &vp8_info, 0);
214 EXPECT_EQ(expected_temporal_idx[7], vp8_info.temporalIdx); 214 EXPECT_EQ(expected_temporal_idx[7], vp8_info.temporalIdx);
215 EXPECT_EQ(true, vp8_info.layerSync); 215 EXPECT_EQ(true, vp8_info.layerSync);
216 } 216 }
217 } // namespace webrtc 217 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698