1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 07:45:29 -05:00

rename TypedSettings to TypedMessage

This commit is contained in:
Darien Raymond
2016-12-15 11:51:09 +01:00
parent 5bbbdc05de
commit 50bc195f7f
52 changed files with 451 additions and 461 deletions

View File

@@ -4,7 +4,6 @@ import (
"testing"
"v2ray.com/core/common/buf"
"v2ray.com/core/common/loader"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/common/protocol"
"v2ray.com/core/common/serial"
@@ -22,7 +21,7 @@ func TestUDPEncoding(t *testing.T) {
Port: 1234,
User: &protocol.User{
Email: "love@v2ray.com",
Account: loader.NewTypedSettings(&Account{
Account: serial.ToTypedMessage(&Account{
Password: "shadowsocks-password",
CipherType: CipherType_AES_128_CFB,
Ota: Account_Disabled,
@@ -53,7 +52,7 @@ func TestTCPRequest(t *testing.T) {
Port: 1234,
User: &protocol.User{
Email: "love@v2ray.com",
Account: loader.NewTypedSettings(&Account{
Account: serial.ToTypedMessage(&Account{
Password: "tcp-password",
CipherType: CipherType_CHACHA20,
}),
@@ -83,7 +82,7 @@ func TestUDPReaderWriter(t *testing.T) {
assert := assert.On(t)
user := &protocol.User{
Account: loader.NewTypedSettings(&Account{
Account: serial.ToTypedMessage(&Account{
Password: "test-password",
CipherType: CipherType_CHACHA20_IEFT,
}),