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

Unified Diff: content/renderer/media/mock_peer_connection_impl.cc

Issue 2631433002: Rename RTCPeerConnection.updateIce to setConfiguration and make it work. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/mock_peer_connection_impl.cc
diff --git a/content/renderer/media/mock_peer_connection_impl.cc b/content/renderer/media/mock_peer_connection_impl.cc
index 726e4273f59d73a1b075aa4de76583c440cf039e..2ec575071c9a0fcb6b71ea73ffd1b55590ed02ec 100644
--- a/content/renderer/media/mock_peer_connection_impl.cc
+++ b/content/renderer/media/mock_peer_connection_impl.cc
@@ -267,8 +267,13 @@ void MockPeerConnectionImpl::SetRemoteDescriptionWorker(
}
bool MockPeerConnectionImpl::SetConfiguration(
- const RTCConfiguration& configuration) {
- return true;
+ const RTCConfiguration& configuration,
+ webrtc::RTCError* error) {
+ if (setconfiguration_error_type_ == webrtc::RTCErrorType::NONE) {
+ return true;
+ }
+ error->set_type(setconfiguration_error_type_);
+ return false;
}
bool MockPeerConnectionImpl::AddIceCandidate(
« no previous file with comments | « content/renderer/media/mock_peer_connection_impl.h ('k') | content/renderer/media/rtc_peer_connection_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698