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
347 B
Go
Raw Normal View History

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