x/ref: Move v.io/v23/naming/ns to v.io/v23/namespace.
Also renamed ns.Namespace to namespace.T.
MultiPart: 2/2
Change-Id: I7011a8506c8cff289e6820e2d4dd782276eddc1d
diff --git a/profiles/internal/rpc/test/proxy_test.go b/profiles/internal/rpc/test/proxy_test.go
index 7249a3f..3fe5e72 100644
--- a/profiles/internal/rpc/test/proxy_test.go
+++ b/profiles/internal/rpc/test/proxy_test.go
@@ -16,8 +16,8 @@
"v.io/v23"
"v.io/v23/context"
+ "v.io/v23/namespace"
"v.io/v23/naming"
- "v.io/v23/naming/ns"
"v.io/v23/options"
"v.io/v23/rpc"
"v.io/v23/security"
@@ -111,7 +111,7 @@
}
type proxyHandle struct {
- ns ns.Namespace
+ ns namespace.T
sh *modules.Shell
proxy modules.Handle
name string
@@ -375,7 +375,7 @@
}
}
-func verifyMount(t *testing.T, ctx *context.T, ns ns.Namespace, name string) []string {
+func verifyMount(t *testing.T, ctx *context.T, ns namespace.T, name string) []string {
me, err := ns.Resolve(ctx, name)
if err != nil {
t.Errorf("%s not found in mounttable", name)
@@ -384,7 +384,7 @@
return me.Names()
}
-func verifyMountMissing(t *testing.T, ctx *context.T, ns ns.Namespace, name string) {
+func verifyMountMissing(t *testing.T, ctx *context.T, ns namespace.T, name string) {
if me, err := ns.Resolve(ctx, name); err == nil {
names := me.Names()
t.Errorf("%s not supposed to be found in mounttable; got %d servers instead: %v", name, len(names), names)