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

Side by Side Diff: webrtc/base/sslidentity.cc

Issue 2620303003: Replace ASSERT by RTC_DCHECK in all non-test code. (Closed)
Patch Set: Address final nits. 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 unified diff | Download patch
« no previous file with comments | « webrtc/base/socketstream.cc ('k') | webrtc/base/sslsocketfactory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 result << b64_encoded.substr(chunk_offset, kChunkSize); 193 result << b64_encoded.substr(chunk_offset, kChunkSize);
194 result << "\n"; 194 result << "\n";
195 } 195 }
196 196
197 result << "-----END " << pem_type << "-----\n"; 197 result << "-----END " << pem_type << "-----\n";
198 198
199 return result.str(); 199 return result.str();
200 } 200 }
201 201
202 SSLCertChain::SSLCertChain(const std::vector<SSLCertificate*>& certs) { 202 SSLCertChain::SSLCertChain(const std::vector<SSLCertificate*>& certs) {
203 ASSERT(!certs.empty()); 203 RTC_DCHECK(!certs.empty());
204 certs_.resize(certs.size()); 204 certs_.resize(certs.size());
205 std::transform(certs.begin(), certs.end(), certs_.begin(), DupCert); 205 std::transform(certs.begin(), certs.end(), certs_.begin(), DupCert);
206 } 206 }
207 207
208 SSLCertChain::SSLCertChain(const SSLCertificate* cert) { 208 SSLCertChain::SSLCertChain(const SSLCertificate* cert) {
209 certs_.push_back(cert->GetReference()); 209 certs_.push_back(cert->GetReference());
210 } 210 }
211 211
212 SSLCertChain::~SSLCertChain() { 212 SSLCertChain::~SSLCertChain() {
213 std::for_each(certs_.begin(), certs_.end(), DeleteCert); 213 std::for_each(certs_.begin(), certs_.end(), DeleteCert);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 if (bytes_left != 1) { 331 if (bytes_left != 1) {
332 // Now just Z should remain. Its existence was asserted above. 332 // Now just Z should remain. Its existence was asserted above.
333 return -1; 333 return -1;
334 } 334 }
335 335
336 return TmToSeconds(tm); 336 return TmToSeconds(tm);
337 } 337 }
338 338
339 } // namespace rtc 339 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/socketstream.cc ('k') | webrtc/base/sslsocketfactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698