Index: webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm |
diff --git a/webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm b/webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm |
index 63b21bf991028461dc76749892cf58da6727d740..429962df4bc8b80f81c775db5af9fc4a37b7a1aa 100644 |
--- a/webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm |
+++ b/webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm |
@@ -59,7 +59,15 @@ |
RTCPeerConnection *peerConnection = |
[factory peerConnectionWithConfiguration:config constraints:contraints delegate:nil]; |
newConfig = peerConnection.configuration; |
+ |
+ EXPECT_TRUE([peerConnection setBitrateToMin:[NSNumber numberWithInt:100000] |
+ toCurrent:[NSNumber numberWithInt:5000000] |
+ toMax:[NSNumber numberWithInt:500000000]]); |
+ EXPECT_FALSE([peerConnection setBitrateToMin:[NSNumber numberWithInt:2] |
+ toCurrent:[NSNumber numberWithInt:1] |
+ toMax:nullptr]); |
tkchin_webrtc
2017/08/31 21:20:48
nil not nullptr
nil is for objc objects and means
|
} |
+ |
EXPECT_EQ([config.iceServers count], [newConfig.iceServers count]); |
RTCIceServer *newServer = newConfig.iceServers[0]; |
RTCIceServer *origServer = config.iceServers[0]; |