1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-02 12:05:23 +00:00
v2fly/transport/internet/headers/wechat/wechat_test.go

21 lines
347 B
Go
Raw Normal View History

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