Closed Bug 1577021 Opened 5 years ago Closed 5 years ago

Add gtest coverage for non-ascii codecs in MimeTypes

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox-esr68 --- fixed
firefox70 --- fixed
firefox71 --- fixed

People

(Reporter: bryce, Assigned: bryce)

References

Details

Attachments

(1 file)

Bug 1573381 shows a lack of coverage in our tests for working with MimeType strings. Specifically that when calculating if a string is a prefix of a codec in a mime type we were not correctly checking that prefix.

We could cover that bug, as well as improve coverage by having tests that check against non-ascii MimeTypes.

Summary: Add gtest coverage for non-ascii MimeTypes → Add gtest coverage for non-ascii codecs MimeTypes
Summary: Add gtest coverage for non-ascii codecs MimeTypes → Add gtest coverage for non-ascii codecs in MimeTypes

Provides coverage for an issue fixed in 1573381. Note that while that bug
discusses big endian machines, the tests added will cover both the big and
little endian case of the bug. This is because we have test cases that make sure
both octets of 16 wide char are being correctly compared.

Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81bb1eaa1c0b
Add test coverage for non-ascii characters in MimeType codecs. r=dminor

Figured using a u8 prefix would be more specific and thus preferred, but seems not. Let's try that again.

Flags: needinfo?(bvandyk)
Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/be35733bd975
Add test coverage for non-ascii characters in MimeType codecs. r=dminor
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Whiteboard: [checkin-needed-beta][checkin-needed-esr68]
Whiteboard: [checkin-needed-beta][checkin-needed-esr68] → [checkin-needed-beta]
Whiteboard: [checkin-needed-beta]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: