summaryrefslogtreecommitdiffstats
path: root/dom/quota/test/gtest/TestEncryptedStream.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /dom/quota/test/gtest/TestEncryptedStream.cpp
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/quota/test/gtest/TestEncryptedStream.cpp')
-rw-r--r--dom/quota/test/gtest/TestEncryptedStream.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/dom/quota/test/gtest/TestEncryptedStream.cpp b/dom/quota/test/gtest/TestEncryptedStream.cpp
index 8937b0c4e7..04fe43f38e 100644
--- a/dom/quota/test/gtest/TestEncryptedStream.cpp
+++ b/dom/quota/test/gtest/TestEncryptedStream.cpp
@@ -127,20 +127,20 @@ ArrayBufferInputStream::Read(char* aBuf, uint32_t aCount,
NS_IMETHODIMP
ArrayBufferInputStream::ReadSegments(nsWriteSegmentFun writer, void* closure,
uint32_t aCount, uint32_t* result) {
- MOZ_ASSERT(result, "null ptr");
- MOZ_ASSERT(mBufferLength >= mPos, "bad stream state");
+ MOZ_RELEASE_ASSERT(result, "null ptr");
+ MOZ_RELEASE_ASSERT(mBufferLength >= mPos, "bad stream state");
if (mClosed) {
return NS_BASE_STREAM_CLOSED;
}
- MOZ_ASSERT(mArrayBuffer || (mPos == mBufferLength),
- "stream inited incorrectly");
+ MOZ_RELEASE_ASSERT(mArrayBuffer || (mPos == mBufferLength),
+ "stream inited incorrectly");
*result = 0;
while (mPos < mBufferLength) {
uint32_t remaining = mBufferLength - mPos;
- MOZ_ASSERT(mArrayBuffer);
+ MOZ_RELEASE_ASSERT(mArrayBuffer);
uint32_t count = std::min(aCount, remaining);
if (count == 0) {
@@ -155,8 +155,9 @@ ArrayBufferInputStream::ReadSegments(nsWriteSegmentFun writer, void* closure,
return NS_OK;
}
- MOZ_ASSERT(written <= count,
- "writer should not write more than we asked it to write");
+ MOZ_RELEASE_ASSERT(
+ written <= count,
+ "writer should not write more than we asked it to write");
mPos += written;
*result += written;
aCount -= written;
@@ -174,7 +175,7 @@ ArrayBufferInputStream::IsNonBlocking(bool* aNonBlocking) {
}
NS_IMETHODIMP ArrayBufferInputStream::Tell(int64_t* const aRetval) {
- MOZ_ASSERT(aRetval);
+ MOZ_RELEASE_ASSERT(aRetval);
*aRetval = mPos;