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

Side by Side Diff: content/renderer/media/mock_peer_connection_impl.h

Issue 9567007: libjingle roll 117:119 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 virtual talk_base::scoped_refptr<StreamCollectionInterface> 25 virtual talk_base::scoped_refptr<StreamCollectionInterface>
26 local_streams() OVERRIDE; 26 local_streams() OVERRIDE;
27 virtual talk_base::scoped_refptr<StreamCollectionInterface> 27 virtual talk_base::scoped_refptr<StreamCollectionInterface>
28 remote_streams() OVERRIDE; 28 remote_streams() OVERRIDE;
29 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE; 29 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE;
30 virtual void RemoveStream(LocalMediaStreamInterface* stream) OVERRIDE; 30 virtual void RemoveStream(LocalMediaStreamInterface* stream) OVERRIDE;
31 virtual void CommitStreamChanges() OVERRIDE; 31 virtual void CommitStreamChanges() OVERRIDE;
32 virtual void Close() OVERRIDE; 32 virtual void Close() OVERRIDE;
33 virtual ReadyState ready_state() OVERRIDE; 33 virtual ReadyState ready_state() OVERRIDE;
34 virtual SdpState sdp_state() OVERRIDE; 34 virtual SdpState sdp_state() OVERRIDE;
35 virtual void StartIce(IceOptions options) OVERRIDE;
36
37 virtual webrtc::SessionDescriptionInterface* CreateOffer(
38 const webrtc::MediaHints& hints) OVERRIDE;
39 virtual webrtc::SessionDescriptionInterface* CreateAnswer(
40 const webrtc::MediaHints& hints,
41 const webrtc::SessionDescriptionInterface* offer) OVERRIDE;
42 virtual bool SetLocalDescription(
43 Action action,
44 webrtc::SessionDescriptionInterface* desc) OVERRIDE;
45 virtual bool SetRemoteDescription(
46 Action action,
47 webrtc::SessionDescriptionInterface* desc) OVERRIDE;
48 virtual bool ProcessIceMessage(
49 const webrtc::IceCandidateInterface* ice_candidate) OVERRIDE;
50 virtual const webrtc::SessionDescriptionInterface* local_description()
51 const OVERRIDE;
52 virtual const webrtc::SessionDescriptionInterface* remote_description()
53 const OVERRIDE;
35 54
36 void AddRemoteStream(MediaStreamInterface* stream); 55 void AddRemoteStream(MediaStreamInterface* stream);
37 void ClearStreamChangesCommitted() { stream_changes_committed_ = false; } 56 void ClearStreamChangesCommitted() { stream_changes_committed_ = false; }
38 57
39 const std::string& signaling_message() const { return signaling_message_; } 58 const std::string& signaling_message() const { return signaling_message_; }
40 const std::string& stream_label() const { return stream_label_; } 59 const std::string& stream_label() const { return stream_label_; }
41 bool stream_changes_committed() const { return stream_changes_committed_; } 60 bool stream_changes_committed() const { return stream_changes_committed_; }
42 61
43 protected: 62 protected:
44 virtual ~MockPeerConnectionImpl(); 63 virtual ~MockPeerConnectionImpl();
45 64
46 private: 65 private:
47 std::string signaling_message_; 66 std::string signaling_message_;
48 std::string stream_label_; 67 std::string stream_label_;
49 bool stream_changes_committed_; 68 bool stream_changes_committed_;
50 talk_base::scoped_refptr<MockStreamCollection> remote_streams_; 69 talk_base::scoped_refptr<MockStreamCollection> remote_streams_;
51 70
52 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); 71 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl);
53 }; 72 };
54 73
55 } // namespace webrtc 74 } // namespace webrtc
56 75
57 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ 76 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_dependency_factory.cc ('k') | content/renderer/media/mock_peer_connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698