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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2_unittest.cc

Issue 1684163002: Rename webrtc/media/webrtc -> webrtc/media/engine (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase f396f6085f9e4f16f37471a7828e3e31308c0d52 #11590 Created 4 years, 10 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/media/engine/webrtcvideoengine2.cc ('k') | webrtc/media/engine/webrtcvideoframe.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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 #ifdef HAVE_WEBRTC_VIDEO 11 #ifdef HAVE_WEBRTC_VIDEO
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <map> 14 #include <map>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/base/arraysize.h" 17 #include "webrtc/base/arraysize.h"
18 #include "webrtc/base/gunit.h" 18 #include "webrtc/base/gunit.h"
19 #include "webrtc/base/stringutils.h" 19 #include "webrtc/base/stringutils.h"
20 #include "webrtc/media/base/testutils.h" 20 #include "webrtc/media/base/testutils.h"
21 #include "webrtc/media/base/videoengine_unittest.h" 21 #include "webrtc/media/base/videoengine_unittest.h"
22 #include "webrtc/media/webrtc/fakewebrtccall.h" 22 #include "webrtc/media/engine/fakewebrtccall.h"
23 #include "webrtc/media/webrtc/fakewebrtcvideoengine.h" 23 #include "webrtc/media/engine/fakewebrtcvideoengine.h"
24 #include "webrtc/media/webrtc/simulcast.h" 24 #include "webrtc/media/engine/simulcast.h"
25 #include "webrtc/media/webrtc/webrtcvideochannelfactory.h" 25 #include "webrtc/media/engine/webrtcvideochannelfactory.h"
26 #include "webrtc/media/webrtc/webrtcvideoengine2.h" 26 #include "webrtc/media/engine/webrtcvideoengine2.h"
27 #include "webrtc/media/webrtc/webrtcvoiceengine.h" 27 #include "webrtc/media/engine/webrtcvoiceengine.h"
28 #include "webrtc/test/field_trial.h" 28 #include "webrtc/test/field_trial.h"
29 #include "webrtc/video_encoder.h" 29 #include "webrtc/video_encoder.h"
30 30
31 namespace { 31 namespace {
32 static const int kDefaultQpMax = 56; 32 static const int kDefaultQpMax = 56;
33 static const int kDefaultFramerate = 30; 33 static const int kDefaultFramerate = 30;
34 34
35 static const cricket::VideoCodec kVp8Codec720p(100, "VP8", 1280, 720, 30, 0); 35 static const cricket::VideoCodec kVp8Codec720p(100, "VP8", 1280, 720, 30, 0);
36 static const cricket::VideoCodec kVp8Codec360p(100, "VP8", 640, 360, 30, 0); 36 static const cricket::VideoCodec kVp8Codec360p(100, "VP8", 640, 360, 30, 0);
37 static const cricket::VideoCodec kVp8Codec270p(100, "VP8", 480, 270, 30, 0); 37 static const cricket::VideoCodec kVp8Codec270p(100, "VP8", 480, 270, 30, 0);
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 // Test that we normalize send codec format size in simulcast. 3071 // Test that we normalize send codec format size in simulcast.
3072 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWithOddSizeInSimulcast) { 3072 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWithOddSizeInSimulcast) {
3073 cricket::VideoCodec codec(kVp8Codec270p); 3073 cricket::VideoCodec codec(kVp8Codec270p);
3074 codec.width += 1; 3074 codec.width += 1;
3075 codec.height += 1; 3075 codec.height += 1;
3076 VerifySimulcastSettings(codec, 2, 2); 3076 VerifySimulcastSettings(codec, 2, 2);
3077 } 3077 }
3078 } // namespace cricket 3078 } // namespace cricket
3079 3079
3080 #endif // HAVE_WEBRTC_VIDEO 3080 #endif // HAVE_WEBRTC_VIDEO
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2.cc ('k') | webrtc/media/engine/webrtcvideoframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698