1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-02 08:46:04 -04:00
v2fly/transport/internet/headers/wechat/wechat_test.go

21 lines
362 B
Go
Raw Normal View History

2017-01-03 16:46:22 -05:00
package wechat_test
import (
"testing"
"v2ray.com/core/common/buf"
"v2ray.com/core/testing/assert"
. "v2ray.com/core/transport/internet/headers/wechat"
)
func TestUTPWrite(t *testing.T) {
assert := assert.On(t)
video := VideoChat{}
payload := buf.NewLocal(2048)
payload.AppendSupplier(video.Write)
assert.Int(payload.Len()).Equals(video.Size())
}