mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-19 10:56:06 -05:00
21 lines
347 B
Go
21 lines
347 B
Go
package wechat_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"v2ray.com/core/common/buf"
|
|
. "v2ray.com/ext/assert"
|
|
. "v2ray.com/core/transport/internet/headers/wechat"
|
|
)
|
|
|
|
func TestUTPWrite(t *testing.T) {
|
|
assert := With(t)
|
|
|
|
video := VideoChat{}
|
|
|
|
payload := buf.NewLocal(2048)
|
|
payload.AppendSupplier(video.Write)
|
|
|
|
assert(payload.Len(), Equals, video.Size())
|
|
}
|