OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 // This file contains fake implementations, for use in unit tests, of the | 11 // This file contains fake implementations, for use in unit tests, of the |
12 // following classes: | 12 // following classes: |
13 // | 13 // |
14 // webrtc::Call | 14 // webrtc::Call |
15 // webrtc::AudioSendStream | 15 // webrtc::AudioSendStream |
16 // webrtc::AudioReceiveStream | 16 // webrtc::AudioReceiveStream |
17 // webrtc::VideoSendStream | 17 // webrtc::VideoSendStream |
18 // webrtc::VideoReceiveStream | 18 // webrtc::VideoReceiveStream |
19 | 19 |
20 #ifndef WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ | 20 #ifndef WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ |
21 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ | 21 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ |
22 | 22 |
23 #include <memory> | 23 #include <memory> |
24 #include <vector> | 24 #include <vector> |
25 | 25 |
26 #include "webrtc/audio_receive_stream.h" | 26 #include "webrtc/api/call/audio_receive_stream.h" |
27 #include "webrtc/audio_send_stream.h" | 27 #include "webrtc/api/call/audio_send_stream.h" |
28 #include "webrtc/base/buffer.h" | 28 #include "webrtc/base/buffer.h" |
29 #include "webrtc/call.h" | 29 #include "webrtc/call.h" |
30 #include "webrtc/video_frame.h" | 30 #include "webrtc/video_frame.h" |
31 #include "webrtc/video_receive_stream.h" | 31 #include "webrtc/video_receive_stream.h" |
32 #include "webrtc/video_send_stream.h" | 32 #include "webrtc/video_send_stream.h" |
33 | 33 |
34 namespace cricket { | 34 namespace cricket { |
35 class FakeAudioSendStream final : public webrtc::AudioSendStream { | 35 class FakeAudioSendStream final : public webrtc::AudioSendStream { |
36 public: | 36 public: |
37 struct TelephoneEvent { | 37 struct TelephoneEvent { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 std::vector<FakeAudioSendStream*> audio_send_streams_; | 247 std::vector<FakeAudioSendStream*> audio_send_streams_; |
248 std::vector<FakeVideoReceiveStream*> video_receive_streams_; | 248 std::vector<FakeVideoReceiveStream*> video_receive_streams_; |
249 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; | 249 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; |
250 | 250 |
251 int num_created_send_streams_; | 251 int num_created_send_streams_; |
252 int num_created_receive_streams_; | 252 int num_created_receive_streams_; |
253 }; | 253 }; |
254 | 254 |
255 } // namespace cricket | 255 } // namespace cricket |
256 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ | 256 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ |
OLD | NEW |