Version: v0.0.0-...-e560ebb Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0



Package tlsutil provides utility for working with test lab services.

Test lab services provide lab service access for Chrome OS Remote Test Drivers to different test lab environments.



This section is empty.


This section is empty.


func MakeTestClient

func MakeTestClient(ctx context.Context) (*grpc.ClientConn, net.Listener)

MakeTestClient returns a gRPC client connected to a listener which is implemented using an in-memory buffer. This is to be used for testing.


type Logger

type Logger interface {
	Printf(string, ...interface{})

Logger is the interface used for a logging sink.

type SSHStub

type SSHStub struct {
	Output     []byte
	ExitStatus uint32
	// Logger is used to print messages for debugging if set.
	Logger Logger

SSHStub is a stub implementation of an SSH server for testing. It returns canned stdout output and exit status.

func (SSHStub) Serve

func (s SSHStub) Serve(l net.Listener) error

Serve serves the service using the listener.

type WiringFake

type WiringFake struct {
	// DUTAddress is a static string to return for OpenDutPort.
	DUTAddress string
	// DUTPort is a static int to return for OpenDutPort.
	DUTPort int32

WiringFake is a fake implementation of tls.WiringServer for testing.

func (WiringFake) OpenDutPort

OpenDutPort implements the respective gRPC.

func (WiringFake) Serve

func (s WiringFake) Serve(l net.Listener) error

Serve serves the service using the listener.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL