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

Side by Side Diff: webrtc/api/peerconnectionfactory_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/api/peerconnectionfactory.cc ('k') | webrtc/api/remotevideocapturer_unittest.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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 13
14 #include "webrtc/api/mediastreaminterface.h" 14 #include "webrtc/api/mediastreaminterface.h"
15 #include "webrtc/api/peerconnectionfactory.h" 15 #include "webrtc/api/peerconnectionfactory.h"
16 #ifdef WEBRTC_ANDROID 16 #ifdef WEBRTC_ANDROID
17 #include "webrtc/api/test/androidtestinitializer.h" 17 #include "webrtc/api/test/androidtestinitializer.h"
18 #endif 18 #endif
19 #include "webrtc/api/test/fakedtlsidentitystore.h" 19 #include "webrtc/api/test/fakedtlsidentitystore.h"
20 #include "webrtc/api/test/fakevideotrackrenderer.h" 20 #include "webrtc/api/test/fakevideotrackrenderer.h"
21 #include "webrtc/api/videosourceinterface.h" 21 #include "webrtc/api/videosourceinterface.h"
22 #include "webrtc/base/gunit.h" 22 #include "webrtc/base/gunit.h"
23 #include "webrtc/base/scoped_ptr.h" 23 #include "webrtc/base/scoped_ptr.h"
24 #include "webrtc/base/thread.h" 24 #include "webrtc/base/thread.h"
25 #include "webrtc/media/base/fakevideocapturer.h" 25 #include "webrtc/media/base/fakevideocapturer.h"
26 #include "webrtc/media/webrtc/webrtccommon.h" 26 #include "webrtc/media/engine/webrtccommon.h"
27 #include "webrtc/media/webrtc/webrtcvoe.h" 27 #include "webrtc/media/engine/webrtcvoe.h"
28 #include "webrtc/p2p/client/fakeportallocator.h" 28 #include "webrtc/p2p/client/fakeportallocator.h"
29 29
30 using webrtc::DataChannelInterface; 30 using webrtc::DataChannelInterface;
31 using webrtc::DtlsIdentityStoreInterface; 31 using webrtc::DtlsIdentityStoreInterface;
32 using webrtc::FakeVideoTrackRenderer; 32 using webrtc::FakeVideoTrackRenderer;
33 using webrtc::MediaStreamInterface; 33 using webrtc::MediaStreamInterface;
34 using webrtc::PeerConnectionFactoryInterface; 34 using webrtc::PeerConnectionFactoryInterface;
35 using webrtc::PeerConnectionInterface; 35 using webrtc::PeerConnectionInterface;
36 using webrtc::PeerConnectionObserver; 36 using webrtc::PeerConnectionObserver;
37 using webrtc::VideoSourceInterface; 37 using webrtc::VideoSourceInterface;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 track->set_enabled(false); 348 track->set_enabled(false);
349 EXPECT_TRUE(capturer->CaptureFrame()); 349 EXPECT_TRUE(capturer->CaptureFrame());
350 EXPECT_EQ(2, local_renderer.num_rendered_frames()); 350 EXPECT_EQ(2, local_renderer.num_rendered_frames());
351 EXPECT_TRUE(local_renderer.black_frame()); 351 EXPECT_TRUE(local_renderer.black_frame());
352 352
353 track->set_enabled(true); 353 track->set_enabled(true);
354 EXPECT_TRUE(capturer->CaptureFrame()); 354 EXPECT_TRUE(capturer->CaptureFrame());
355 EXPECT_EQ(3, local_renderer.num_rendered_frames()); 355 EXPECT_EQ(3, local_renderer.num_rendered_frames());
356 EXPECT_FALSE(local_renderer.black_frame()); 356 EXPECT_FALSE(local_renderer.black_frame());
357 } 357 }
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectionfactory.cc ('k') | webrtc/api/remotevideocapturer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698