Skip to content

Commit

Permalink
Replace assert_precondition in webrtc (#23244)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcgruer committed Apr 29, 2020
1 parent 0583eb9 commit ae7042f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lint.whitelist
Original file line number Diff line number Diff line change
Expand Up @@ -763,5 +763,3 @@ ASSERT-PRECONDITION: infrastructure/expected-fail/precondition.html
ASSERT-PRECONDITION: infrastructure/expected-fail/precondition-in-setup.html
ASSERT-PRECONDITION: infrastructure/expected-fail/precondition-in-promise.html
ASSERT-PRECONDITION: resources/testharness.js
ASSERT-PRECONDITION: webrtc/protocol/crypto-suite.https.html
ASSERT-PRECONDITION: webrtc-extensions/RTCRtpSynchronizationSource-captureTimestamp.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
if (answer.sdp.match(extmap) == null) {
// We expect that absolute capture time RTP header extension is answered.
// But if not, there is no need to proceed with the test.
assert_precondition(!absCaptureTimeAnswered, 'Absolute capture time RTP ' +
assert_false(absCaptureTimeAnswered, 'Absolute capture time RTP ' +
'header extension is not answered');
} else {
if (!absCaptureTimeAnswered) {
Expand Down
2 changes: 1 addition & 1 deletion webrtc/protocol/crypto-suite.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
};

function verifyStat(name, transportStats) {
assert_precondition(typeof transportStats !== 'undefined');
assert_true(typeof transportStats !== 'undefined');
assert_true(name in transportStats, 'Value present:');
assert_true(acceptableValues[name].has(transportStats[name]));
}
Expand Down

0 comments on commit ae7042f

Please sign in to comment.