| OLD | NEW |
| 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 <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 | 14 |
| 15 #include "webrtc/api/mediastreaminterface.h" | 15 #include "webrtc/api/mediastreaminterface.h" |
| 16 #include "webrtc/api/peerconnectionfactory.h" | 16 #include "webrtc/api/peerconnectionfactory.h" |
| 17 #ifdef WEBRTC_ANDROID | 17 #ifdef WEBRTC_ANDROID |
| 18 #include "webrtc/api/test/androidtestinitializer.h" | 18 #include "webrtc/api/test/androidtestinitializer.h" |
| 19 #endif | 19 #endif |
| 20 #include "webrtc/api/test/fakedtlsidentitystore.h" | 20 #include "webrtc/api/test/fakedtlsidentitystore.h" |
| 21 #include "webrtc/api/test/fakevideotrackrenderer.h" | 21 #include "webrtc/api/test/fakevideotrackrenderer.h" |
| 22 #include "webrtc/base/gunit.h" | 22 #include "webrtc/base/gunit.h" |
| 23 #include "webrtc/base/thread.h" | 23 #include "webrtc/base/thread.h" |
| 24 #include "webrtc/media/base/fakevideocapturer.h" | 24 #include "webrtc/media/base/fakevideocapturer.h" |
| 25 #include "webrtc/media/engine/webrtccommon.h" | 25 #include "webrtc/media/engine/webrtccommon.h" |
| 26 #include "webrtc/media/engine/webrtcvoe.h" | 26 #include "webrtc/media/engine/webrtcvoe.h" |
| 27 #include "webrtc/p2p/client/fakeportallocator.h" | 27 #include "webrtc/p2p/base/fakeportallocator.h" |
| 28 | 28 |
| 29 using webrtc::DataChannelInterface; | 29 using webrtc::DataChannelInterface; |
| 30 using webrtc::DtlsIdentityStoreInterface; | 30 using webrtc::DtlsIdentityStoreInterface; |
| 31 using webrtc::FakeVideoTrackRenderer; | 31 using webrtc::FakeVideoTrackRenderer; |
| 32 using webrtc::MediaStreamInterface; | 32 using webrtc::MediaStreamInterface; |
| 33 using webrtc::PeerConnectionFactoryInterface; | 33 using webrtc::PeerConnectionFactoryInterface; |
| 34 using webrtc::PeerConnectionInterface; | 34 using webrtc::PeerConnectionInterface; |
| 35 using webrtc::PeerConnectionObserver; | 35 using webrtc::PeerConnectionObserver; |
| 36 using webrtc::VideoTrackSourceInterface; | 36 using webrtc::VideoTrackSourceInterface; |
| 37 using webrtc::VideoTrackInterface; | 37 using webrtc::VideoTrackInterface; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 track->set_enabled(false); | 347 track->set_enabled(false); |
| 348 EXPECT_TRUE(capturer->CaptureFrame()); | 348 EXPECT_TRUE(capturer->CaptureFrame()); |
| 349 EXPECT_EQ(2, local_renderer.num_rendered_frames()); | 349 EXPECT_EQ(2, local_renderer.num_rendered_frames()); |
| 350 EXPECT_TRUE(local_renderer.black_frame()); | 350 EXPECT_TRUE(local_renderer.black_frame()); |
| 351 | 351 |
| 352 track->set_enabled(true); | 352 track->set_enabled(true); |
| 353 EXPECT_TRUE(capturer->CaptureFrame()); | 353 EXPECT_TRUE(capturer->CaptureFrame()); |
| 354 EXPECT_EQ(3, local_renderer.num_rendered_frames()); | 354 EXPECT_EQ(3, local_renderer.num_rendered_frames()); |
| 355 EXPECT_FALSE(local_renderer.black_frame()); | 355 EXPECT_FALSE(local_renderer.black_frame()); |
| 356 } | 356 } |
| OLD | NEW |