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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebRTCICECandidate.cpp

Issue 2811463002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/exported (Closed)
Patch Set: rebase Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 void WebRTCICECandidate::Initialize(const WebString& candidate, 90 void WebRTCICECandidate::Initialize(const WebString& candidate,
91 const WebString& sdp_mid, 91 const WebString& sdp_mid,
92 unsigned short sdp_m_line_index) { 92 unsigned short sdp_m_line_index) {
93 private_ = 93 private_ =
94 WebRTCICECandidatePrivate::Create(candidate, sdp_mid, sdp_m_line_index); 94 WebRTCICECandidatePrivate::Create(candidate, sdp_mid, sdp_m_line_index);
95 } 95 }
96 96
97 WebString WebRTCICECandidate::Candidate() const { 97 WebString WebRTCICECandidate::Candidate() const {
98 ASSERT(!private_.IsNull()); 98 DCHECK(!private_.IsNull());
99 return private_->Candidate(); 99 return private_->Candidate();
100 } 100 }
101 101
102 WebString WebRTCICECandidate::SdpMid() const { 102 WebString WebRTCICECandidate::SdpMid() const {
103 ASSERT(!private_.IsNull()); 103 DCHECK(!private_.IsNull());
104 return private_->SdpMid(); 104 return private_->SdpMid();
105 } 105 }
106 106
107 unsigned short WebRTCICECandidate::SdpMLineIndex() const { 107 unsigned short WebRTCICECandidate::SdpMLineIndex() const {
108 ASSERT(!private_.IsNull()); 108 DCHECK(!private_.IsNull());
109 return private_->SdpMLineIndex(); 109 return private_->SdpMLineIndex();
110 } 110 }
111 111
112 void WebRTCICECandidate::SetCandidate(WebString candidate) { 112 void WebRTCICECandidate::SetCandidate(WebString candidate) {
113 ASSERT(!private_.IsNull()); 113 DCHECK(!private_.IsNull());
114 private_->SetCandidate(candidate); 114 private_->SetCandidate(candidate);
115 } 115 }
116 116
117 void WebRTCICECandidate::SetSdpMid(WebString sdp_mid) { 117 void WebRTCICECandidate::SetSdpMid(WebString sdp_mid) {
118 ASSERT(!private_.IsNull()); 118 DCHECK(!private_.IsNull());
119 private_->SetSdpMid(sdp_mid); 119 private_->SetSdpMid(sdp_mid);
120 } 120 }
121 121
122 void WebRTCICECandidate::SetSdpMLineIndex(unsigned short sdp_m_line_index) { 122 void WebRTCICECandidate::SetSdpMLineIndex(unsigned short sdp_m_line_index) {
123 ASSERT(!private_.IsNull()); 123 DCHECK(!private_.IsNull());
124 private_->SetSdpMLineIndex(sdp_m_line_index); 124 private_->SetSdpMLineIndex(sdp_m_line_index);
125 } 125 }
126 126
127 } // namespace blink 127 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698