Polishing code to handle certificate generation failure in .mm files.

This is a follow-up to https://codereview.webrtc.org/1965313002/ which
was TBR-landed.

Minor code clean-up/corrections:

Property nativeConfiguration -> - method createNativeConfiguration.
RTCLogWarning -> RTCLogError.
setConfiguration returning NO instead of false.
initWithFactory returning nil instead of nullptr.
Braces around ifs.

Review-Url: https://codereview.webrtc.org/1978233002
Cr-Commit-Position: refs/heads/master@{#12770}
This commit is contained in:
hbos
2016-05-17 03:28:58 -07:00
committed by Commit bot
parent ee3732622c
commit a73ca5668e
4 changed files with 20 additions and 16 deletions

View File

@ -45,7 +45,8 @@
RTCContinualGatheringPolicyGatherContinually;
std::unique_ptr<webrtc::PeerConnectionInterface::RTCConfiguration>
nativeConfig(config.nativeConfiguration);
nativeConfig([config createNativeConfiguration]);
EXPECT_TRUE(nativeConfig.get());
EXPECT_EQ(1u, nativeConfig->servers.size());
webrtc::PeerConnectionInterface::IceServer nativeServer =
nativeConfig->servers.front();