OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 30 matching lines...) Expand all Loading... |
41 case webrtc::PeerConnectionInterface::kIceConnectionConnected: | 41 case webrtc::PeerConnectionInterface::kIceConnectionConnected: |
42 return RTCICEConnectionConnected; | 42 return RTCICEConnectionConnected; |
43 case webrtc::PeerConnectionInterface::kIceConnectionCompleted: | 43 case webrtc::PeerConnectionInterface::kIceConnectionCompleted: |
44 return RTCICEConnectionCompleted; | 44 return RTCICEConnectionCompleted; |
45 case webrtc::PeerConnectionInterface::kIceConnectionFailed: | 45 case webrtc::PeerConnectionInterface::kIceConnectionFailed: |
46 return RTCICEConnectionFailed; | 46 return RTCICEConnectionFailed; |
47 case webrtc::PeerConnectionInterface::kIceConnectionDisconnected: | 47 case webrtc::PeerConnectionInterface::kIceConnectionDisconnected: |
48 return RTCICEConnectionDisconnected; | 48 return RTCICEConnectionDisconnected; |
49 case webrtc::PeerConnectionInterface::kIceConnectionClosed: | 49 case webrtc::PeerConnectionInterface::kIceConnectionClosed: |
50 return RTCICEConnectionClosed; | 50 return RTCICEConnectionClosed; |
| 51 case webrtc::PeerConnectionInterface::kIceConnectionMax: |
| 52 NSAssert(NO, @"kIceConnectionMax not allowed"); |
| 53 return RTCICEConnectionMax; |
51 } | 54 } |
52 } | 55 } |
53 | 56 |
54 + (RTCICEGatheringState)convertIceGatheringStateToObjC: | 57 + (RTCICEGatheringState)convertIceGatheringStateToObjC: |
55 (webrtc::PeerConnectionInterface::IceGatheringState)nativeState { | 58 (webrtc::PeerConnectionInterface::IceGatheringState)nativeState { |
56 switch (nativeState) { | 59 switch (nativeState) { |
57 case webrtc::PeerConnectionInterface::kIceGatheringNew: | 60 case webrtc::PeerConnectionInterface::kIceGatheringNew: |
58 return RTCICEGatheringNew; | 61 return RTCICEGatheringNew; |
59 case webrtc::PeerConnectionInterface::kIceGatheringGathering: | 62 case webrtc::PeerConnectionInterface::kIceGatheringGathering: |
60 return RTCICEGatheringGathering; | 63 return RTCICEGatheringGathering; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 (RTCTcpCandidatePolicy)tcpCandidatePolicy { | 222 (RTCTcpCandidatePolicy)tcpCandidatePolicy { |
220 switch (tcpCandidatePolicy) { | 223 switch (tcpCandidatePolicy) { |
221 case kRTCTcpCandidatePolicyEnabled: | 224 case kRTCTcpCandidatePolicyEnabled: |
222 return webrtc::PeerConnectionInterface::kTcpCandidatePolicyEnabled; | 225 return webrtc::PeerConnectionInterface::kTcpCandidatePolicyEnabled; |
223 case kRTCTcpCandidatePolicyDisabled: | 226 case kRTCTcpCandidatePolicyDisabled: |
224 return webrtc::PeerConnectionInterface::kTcpCandidatePolicyDisabled; | 227 return webrtc::PeerConnectionInterface::kTcpCandidatePolicyDisabled; |
225 } | 228 } |
226 } | 229 } |
227 | 230 |
228 @end | 231 @end |
OLD | NEW |