mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-30 08:59:43 +00:00
21 lines
346 B
Go
21 lines
346 B
Go
package jitsi
|
|
|
|
import (
|
|
"encoding/base64"
|
|
"testing"
|
|
|
|
"github.com/zarazaex69/j"
|
|
)
|
|
|
|
func encodeForTest(t *testing.T, data []byte) string {
|
|
t.Helper()
|
|
return base64.StdEncoding.EncodeToString(data)
|
|
}
|
|
|
|
func makeBridgeMessage(class string, fields map[string]any) j.BridgeMessage {
|
|
return j.BridgeMessage{
|
|
Class: class,
|
|
Fields: fields,
|
|
}
|
|
}
|