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

Unified Diff: third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
diff --git a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
index f57eedf27a683917a18b7325a0172ce383826e82..5ef20a1a0973e9394cf14f0fcd295a0f71bdc0af 100644
--- a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
+++ b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
@@ -77,7 +77,7 @@ public:
explicit WebCryptoAlgorithmParamsWithHash(const WebCryptoAlgorithm& hash)
: m_hash(hash)
{
- BLINK_ASSERT(!hash.isNull());
+ DCHECK(!hash.isNull());
}
const WebCryptoAlgorithm& hash() const { return m_hash; }
@@ -135,7 +135,7 @@ public:
, m_hasLengthBits(hasLengthBits)
, m_optionalLengthBits(lengthBits)
{
- BLINK_ASSERT(hasLengthBits || !lengthBits);
+ DCHECK(hasLengthBits || !lengthBits);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeHmacImportParams; }
@@ -156,7 +156,7 @@ public:
, m_hasLengthBits(hasLengthBits)
, m_optionalLengthBits(lengthBits)
{
- BLINK_ASSERT(hasLengthBits || !lengthBits);
+ DCHECK(hasLengthBits || !lengthBits);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeHmacKeyGenParams; }
@@ -179,8 +179,8 @@ public:
, m_hasTagLengthBits(hasTagLengthBits)
, m_optionalTagLengthBits(tagLengthBits)
{
- BLINK_ASSERT(hasAdditionalData || !additionalDataSize);
- BLINK_ASSERT(hasTagLengthBits || !tagLengthBits);
+ DCHECK(hasAdditionalData || !additionalDataSize);
+ DCHECK(hasTagLengthBits || !tagLengthBits);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeAesGcmParams; }
@@ -218,7 +218,7 @@ public:
, m_publicExponent(publicExponent, publicExponentSize)
, m_hash(hash)
{
- BLINK_ASSERT(!hash.isNull());
+ DCHECK(!hash.isNull());
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeRsaHashedKeyGenParams; }
@@ -255,7 +255,7 @@ public:
: m_hasLabel(hasLabel)
, m_optionalLabel(label, labelSize)
{
- BLINK_ASSERT(hasLabel || !labelSize);
+ DCHECK(hasLabel || !labelSize);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeRsaOaepParams; }

Powered by Google App Engine
This is Rietveld 408576698