| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // These are the internal functions only for use in the proxy_test package. |
| func InternalNew(rid naming.RoutingID, ctx *context.T, auth security.Authorizer) (*Proxy, func(), naming.Endpoint, error) { |
| proxy, err := internalNew(rid, ctx, v23.GetListenSpec(ctx), auth) |
| return nil, nil, nil, err |
| return proxy, proxy.shutdown, proxy.endpoint(), err |
| func NumProcesses(proxy *Proxy) int { |
| return len(proxy.processes) |