Improve the style of the objc wrapper for PeerConnectionInterface::SetBitrate.

BUG=webrtc:7395

Review-Url: https://codereview.webrtc.org/3011013002
Cr-Commit-Position: refs/heads/master@{#19697}
This commit is contained in:
zstein
2017-09-05 14:43:03 -07:00
committed by Commit Bot
parent e5abac443a
commit 8b476173d8
3 changed files with 18 additions and 17 deletions

View File

@ -60,12 +60,12 @@
[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]);
EXPECT_TRUE([peerConnection setBweMinBitrateBps:[NSNumber numberWithInt:100000]
currentBitrateBps:[NSNumber numberWithInt:5000000]
maxBitrateBps:[NSNumber numberWithInt:500000000]]);
EXPECT_FALSE([peerConnection setBweMinBitrateBps:[NSNumber numberWithInt:2]
currentBitrateBps:[NSNumber numberWithInt:1]
maxBitrateBps:nil]);
}
EXPECT_EQ([config.iceServers count], [newConfig.iceServers count]);