1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-19 10:56:06 -05:00
v2fly/transport/internet/headers/wechat/wechat_test.go
2017-10-24 16:15:35 +02:00

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())
}