| // 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, p security.Principal, spec rpc.ListenSpec) (*Proxy, func(), naming.Endpoint, error) { |
| proxy, err := internalNew(rid, p, spec) |
| return nil, nil, nil, err |
| return proxy, proxy.shutdown, proxy.endpoint(), err |
| func NumProcesses(proxy *Proxy) int { |
| return len(proxy.processes) |