diff --git a/testing/mocks/config.go b/app/point/config/testing/mocks/config.go similarity index 100% rename from testing/mocks/config.go rename to app/point/config/testing/mocks/config.go diff --git a/proxy/dokodemo/dokodemo_test.go b/proxy/dokodemo/dokodemo_test.go index d80a450fe..763e849b7 100644 --- a/proxy/dokodemo/dokodemo_test.go +++ b/proxy/dokodemo/dokodemo_test.go @@ -5,11 +5,11 @@ import ( "testing" "github.com/v2ray/v2ray-core/app/point" + "github.com/v2ray/v2ray-core/app/point/config/testing/mocks" v2netjson "github.com/v2ray/v2ray-core/common/net/json" v2nettesting "github.com/v2ray/v2ray-core/common/net/testing" "github.com/v2ray/v2ray-core/proxy/dokodemo/config/json" _ "github.com/v2ray/v2ray-core/proxy/freedom" - "github.com/v2ray/v2ray-core/testing/mocks" "github.com/v2ray/v2ray-core/testing/servers/tcp" "github.com/v2ray/v2ray-core/testing/unit" ) diff --git a/proxy/freedom/freedom_test.go b/proxy/freedom/freedom_test.go index 34233d580..58179895a 100644 --- a/proxy/freedom/freedom_test.go +++ b/proxy/freedom/freedom_test.go @@ -10,6 +10,7 @@ import ( "golang.org/x/net/proxy" "github.com/v2ray/v2ray-core/app/point" + "github.com/v2ray/v2ray-core/app/point/config/testing/mocks" "github.com/v2ray/v2ray-core/common/alloc" v2net "github.com/v2ray/v2ray-core/common/net" v2nettesting "github.com/v2ray/v2ray-core/common/net/testing" @@ -17,7 +18,6 @@ import ( _ "github.com/v2ray/v2ray-core/proxy/socks" "github.com/v2ray/v2ray-core/proxy/socks/config/json" proxymocks "github.com/v2ray/v2ray-core/proxy/testing/mocks" - "github.com/v2ray/v2ray-core/testing/mocks" "github.com/v2ray/v2ray-core/testing/servers/tcp" "github.com/v2ray/v2ray-core/testing/servers/udp" "github.com/v2ray/v2ray-core/testing/unit" diff --git a/proxy/socks/socks_test.go b/proxy/socks/socks_test.go index de043060b..af68f69c8 100644 --- a/proxy/socks/socks_test.go +++ b/proxy/socks/socks_test.go @@ -10,11 +10,11 @@ import ( "golang.org/x/net/proxy" "github.com/v2ray/v2ray-core/app/point" + "github.com/v2ray/v2ray-core/app/point/config/testing/mocks" v2nettesting "github.com/v2ray/v2ray-core/common/net/testing" "github.com/v2ray/v2ray-core/proxy/common/connhandler" "github.com/v2ray/v2ray-core/proxy/socks/config/json" proxymocks "github.com/v2ray/v2ray-core/proxy/testing/mocks" - "github.com/v2ray/v2ray-core/testing/mocks" "github.com/v2ray/v2ray-core/testing/unit" ) diff --git a/proxy/vmess/vmess_test.go b/proxy/vmess/vmess_test.go index 09e1557a7..cd7da02e8 100644 --- a/proxy/vmess/vmess_test.go +++ b/proxy/vmess/vmess_test.go @@ -5,13 +5,13 @@ import ( "testing" "github.com/v2ray/v2ray-core/app/point" + "github.com/v2ray/v2ray-core/app/point/config/testing/mocks" v2net "github.com/v2ray/v2ray-core/common/net" v2nettesting "github.com/v2ray/v2ray-core/common/net/testing" "github.com/v2ray/v2ray-core/proxy/common/connhandler" proxymocks "github.com/v2ray/v2ray-core/proxy/testing/mocks" "github.com/v2ray/v2ray-core/proxy/vmess/config" "github.com/v2ray/v2ray-core/proxy/vmess/config/json" - "github.com/v2ray/v2ray-core/testing/mocks" "github.com/v2ray/v2ray-core/testing/unit" )