socks_test.go 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package socks
  2. import (
  3. // "bytes"
  4. "testing"
  5. // "github.com/v2ray/v2ray-core"
  6. // "github.com/v2ray/v2ray-core/testing/mocks"
  7. // "github.com/v2ray/v2ray-core/testing/unit"
  8. )
  9. func TestSocksTcpConnect(t *testing.T) {
  10. t.Skip("Not ready yet.")
  11. /*
  12. assert := unit.Assert(t)
  13. port := uint16(12384)
  14. uuid := "2418d087-648d-4990-86e8-19dca1d006d3"
  15. vid, err := core.UUIDToVID(uuid)
  16. assert.Error(err).IsNil()
  17. config := core.VConfig{
  18. port,
  19. []core.VUser{core.VUser{vid}},
  20. "",
  21. []core.VNext{}}
  22. och := new(mocks.FakeOutboundConnectionHandler)
  23. och.Data2Send = bytes.NewBuffer(make([]byte, 1024))
  24. och.Data2Return = []byte("The data to be returned to socks server.")
  25. vpoint, err := core.NewVPoint(&config, SocksServerFactory{}, och)
  26. assert.Error(err).IsNil()
  27. err = vpoint.Start()
  28. assert.Error(err).IsNil()
  29. */
  30. }