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

Side by Side Diff: webrtc/media/base/videoengine_unittest.h

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/base/videocapturer.cc ('k') | webrtc/media/devices/devicemanager.cc » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 #ifndef WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ // NOLINT 11 #ifndef WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ // NOLINT
12 #define WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ 12 #define WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/base/bytebuffer.h" 17 #include "webrtc/base/bytebuffer.h"
18 #include "webrtc/base/gunit.h" 18 #include "webrtc/base/gunit.h"
19 #include "webrtc/base/timeutils.h" 19 #include "webrtc/base/timeutils.h"
20 #include "webrtc/call.h" 20 #include "webrtc/call.h"
21 #include "webrtc/media/base/fakenetworkinterface.h" 21 #include "webrtc/media/base/fakenetworkinterface.h"
22 #include "webrtc/media/base/fakevideocapturer.h" 22 #include "webrtc/media/base/fakevideocapturer.h"
23 #include "webrtc/media/base/fakevideorenderer.h" 23 #include "webrtc/media/base/fakevideorenderer.h"
24 #include "webrtc/media/base/mediachannel.h" 24 #include "webrtc/media/base/mediachannel.h"
25 #include "webrtc/media/base/streamparams.h" 25 #include "webrtc/media/base/streamparams.h"
26 #include "webrtc/media/webrtc/fakewebrtccall.h" 26 #include "webrtc/media/engine/fakewebrtccall.h"
27 27
28 #define EXPECT_FRAME_WAIT(c, w, h, t) \ 28 #define EXPECT_FRAME_WAIT(c, w, h, t) \
29 EXPECT_EQ_WAIT((c), renderer_.num_rendered_frames(), (t)); \ 29 EXPECT_EQ_WAIT((c), renderer_.num_rendered_frames(), (t)); \
30 EXPECT_EQ((w), renderer_.width()); \ 30 EXPECT_EQ((w), renderer_.width()); \
31 EXPECT_EQ((h), renderer_.height()); \ 31 EXPECT_EQ((h), renderer_.height()); \
32 EXPECT_EQ(0, renderer_.errors()); \ 32 EXPECT_EQ(0, renderer_.errors()); \
33 33
34 #define EXPECT_FRAME_ON_RENDERER_WAIT(r, c, w, h, t) \ 34 #define EXPECT_FRAME_ON_RENDERER_WAIT(r, c, w, h, t) \
35 EXPECT_EQ_WAIT((c), (r).num_rendered_frames(), (t)); \ 35 EXPECT_EQ_WAIT((c), (r).num_rendered_frames(), (t)); \
36 EXPECT_EQ((w), (r).width()); \ 36 EXPECT_EQ((w), (r).width()); \
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 rtc::scoped_ptr<C> channel_; 1197 rtc::scoped_ptr<C> channel_;
1198 cricket::FakeNetworkInterface network_interface_; 1198 cricket::FakeNetworkInterface network_interface_;
1199 cricket::FakeVideoRenderer renderer_; 1199 cricket::FakeVideoRenderer renderer_;
1200 cricket::VideoMediaChannel::Error media_error_; 1200 cricket::VideoMediaChannel::Error media_error_;
1201 1201
1202 // Used by test cases where 2 streams are run on the same channel. 1202 // Used by test cases where 2 streams are run on the same channel.
1203 cricket::FakeVideoRenderer renderer2_; 1203 cricket::FakeVideoRenderer renderer2_;
1204 }; 1204 };
1205 1205
1206 #endif // WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ NOLINT 1206 #endif // WEBRTC_MEDIA_BASE_VIDEOENGINE_UNITTEST_H_ NOLINT
OLDNEW
« no previous file with comments | « webrtc/media/base/videocapturer.cc ('k') | webrtc/media/devices/devicemanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698