Remove the "Unknown" constant

This commit replaces the Unknown constant with
separate constants for each enumeration that
uses it.

Fixes #1293
This commit is contained in:
Woodrow Douglass
2023-09-12 11:39:27 -04:00
committed by Sean DuBois
parent 7e598b5a63
commit 13450332a4
50 changed files with 163 additions and 122 deletions

View File

@@ -79,7 +79,7 @@ func TestICEServer_validate(t *testing.T) {
URLs: []string{"turn:192.158.29.39?transport=udp"},
Username: "unittest",
Credential: false,
CredentialType: Unknown,
CredentialType: ICECredentialTypePassword,
}, &rtcerr.InvalidAccessError{Err: ErrTurnCredentials}},
{ICEServer{
URLs: []string{"stun:google.de?transport=udp"},