TestBufferMediaResource.cpp
Interaktion und PortierbarkeitC
/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
TEST(BufferMediaResource, ReadFromCache_NegativeCount_ShouldFail)
{ const uint8_t buf[4] = {0x41, 0x42, 0x43, 0x44};
RefPtr<MediaResource> res = new BufferMediaResource(buf, sizeof(buf));
char out[4] = {0}; // Prevent constant propagation leading to a warning/error on older GCC, that // thinks we're doing a 4GB memcpy into a 4 byte array. // ReadFromCache has an early return that prevents the copy. volatile uint32_t count = static_cast<uint32_t>(-1);
nsresult rv = res->ReadFromCache(out, 0, count);
EXPECT_NE(rv, NS_OK);
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.17Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.