wechat_test.go 347 B

1234567891011121314151617181920
  1. package wechat_test
  2. import (
  3. "testing"
  4. "v2ray.com/core/common/buf"
  5. . "v2ray.com/core/transport/internet/headers/wechat"
  6. . "v2ray.com/ext/assert"
  7. )
  8. func TestUTPWrite(t *testing.T) {
  9. assert := With(t)
  10. video := VideoChat{}
  11. payload := buf.NewLocal(2048)
  12. payload.AppendSupplier(video.Write)
  13. assert(payload.Len(), Equals, video.Size())
  14. }