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

Side by Side Diff: webrtc/pc/test/peerconnectiontestwrapper.h

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Big move! Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 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_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ 11 #ifndef WEBRTC_PC_TEST_PEERCONNECTIONTESTWRAPPER_H_
12 #define WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ 12 #define WEBRTC_PC_TEST_PEERCONNECTIONTESTWRAPPER_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/api/peerconnectioninterface.h" 16 #include "webrtc/api/peerconnectioninterface.h"
17 #include "webrtc/api/test/fakeaudiocapturemodule.h"
18 #include "webrtc/api/test/fakeconstraints.h"
19 #include "webrtc/api/test/fakevideotrackrenderer.h"
20 #include "webrtc/base/sigslot.h" 17 #include "webrtc/base/sigslot.h"
18 #include "webrtc/pc/test/fakeaudiocapturemodule.h"
19 #include "webrtc/pc/test/fakeconstraints.h"
20 #include "webrtc/pc/test/fakevideotrackrenderer.h"
21 21
22 class PeerConnectionTestWrapper 22 class PeerConnectionTestWrapper
23 : public webrtc::PeerConnectionObserver, 23 : public webrtc::PeerConnectionObserver,
24 public webrtc::CreateSessionDescriptionObserver, 24 public webrtc::CreateSessionDescriptionObserver,
25 public sigslot::has_slots<> { 25 public sigslot::has_slots<> {
26 public: 26 public:
27 // We need these using declarations because there are two versions of each of 27 // We need these using declarations because there are two versions of each of
28 // the below methods and we only override one of them. 28 // the below methods and we only override one of them.
29 // TODO(deadbeef): Remove once there's only one version of the methods. 29 // TODO(deadbeef): Remove once there's only one version of the methods.
30 using PeerConnectionObserver::OnAddStream; 30 using PeerConnectionObserver::OnAddStream;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::string name_; 106 std::string name_;
107 rtc::Thread* const network_thread_; 107 rtc::Thread* const network_thread_;
108 rtc::Thread* const worker_thread_; 108 rtc::Thread* const worker_thread_;
109 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; 109 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
110 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> 110 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface>
111 peer_connection_factory_; 111 peer_connection_factory_;
112 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; 112 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_;
113 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; 113 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_;
114 }; 114 };
115 115
116 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ 116 #endif // WEBRTC_PC_TEST_PEERCONNECTIONTESTWRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698