Documentation ¶
Overview ¶
Package lacros provides the UpdateTestService.
Index ¶
- Variables
- func RegisterUpdateTestServiceServer(s *grpc.Server, srv UpdateTestServiceServer)
- type BrowserContext
- func (*BrowserContext) Descriptor() ([]byte, []int)deprecated
- func (x *BrowserContext) GetBrowser() BrowserType
- func (x *BrowserContext) GetOpts() []string
- func (*BrowserContext) ProtoMessage()
- func (x *BrowserContext) ProtoReflect() protoreflect.Message
- func (x *BrowserContext) Reset()
- func (x *BrowserContext) String() string
- type BrowserType
- func (BrowserType) Descriptor() protoreflect.EnumDescriptor
- func (x BrowserType) Enum() *BrowserType
- func (BrowserType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BrowserType) Number() protoreflect.EnumNumber
- func (x BrowserType) String() string
- func (BrowserType) Type() protoreflect.EnumType
- type ClearUpdateRequest
- type ClearUpdateResponse
- type GetBrowserVersionRequest
- func (*GetBrowserVersionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBrowserVersionRequest) GetBrowser() BrowserType
- func (*GetBrowserVersionRequest) ProtoMessage()
- func (x *GetBrowserVersionRequest) ProtoReflect() protoreflect.Message
- func (x *GetBrowserVersionRequest) Reset()
- func (x *GetBrowserVersionRequest) String() string
- type GetBrowserVersionResponse
- func (*GetBrowserVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBrowserVersionResponse) GetVersions() []string
- func (*GetBrowserVersionResponse) ProtoMessage()
- func (x *GetBrowserVersionResponse) ProtoReflect() protoreflect.Message
- func (x *GetBrowserVersionResponse) Reset()
- func (x *GetBrowserVersionResponse) String() string
- type TestResult
- func (*TestResult) Descriptor() ([]byte, []int)deprecated
- func (x *TestResult) GetStatus() TestResult_Status
- func (x *TestResult) GetStatusDetails() string
- func (*TestResult) ProtoMessage()
- func (x *TestResult) ProtoReflect() protoreflect.Message
- func (x *TestResult) Reset()
- func (x *TestResult) String() string
- type TestResult_Status
- func (TestResult_Status) Descriptor() protoreflect.EnumDescriptor
- func (x TestResult_Status) Enum() *TestResult_Status
- func (TestResult_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestResult_Status) Number() protoreflect.EnumNumber
- func (x TestResult_Status) String() string
- func (TestResult_Status) Type() protoreflect.EnumType
- type UnimplementedUpdateTestServiceServer
- func (*UnimplementedUpdateTestServiceServer) ClearUpdate(context.Context, *ClearUpdateRequest) (*ClearUpdateResponse, error)
- func (*UnimplementedUpdateTestServiceServer) GetBrowserVersion(context.Context, *GetBrowserVersionRequest) (*GetBrowserVersionResponse, error)
- func (*UnimplementedUpdateTestServiceServer) VerifyUpdate(context.Context, *VerifyUpdateRequest) (*VerifyUpdateResponse, error)
- type UpdateTestServiceClient
- type UpdateTestServiceServer
- type VerifyUpdateRequest
- func (*VerifyUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyUpdateRequest) GetAshContext() *BrowserContext
- func (x *VerifyUpdateRequest) GetExpectedBrowser() BrowserType
- func (x *VerifyUpdateRequest) GetExpectedComponent() string
- func (x *VerifyUpdateRequest) GetExpectedVersion() string
- func (x *VerifyUpdateRequest) GetProvisionedLacrosContext() []*BrowserContext
- func (x *VerifyUpdateRequest) GetUseUi() bool
- func (*VerifyUpdateRequest) ProtoMessage()
- func (x *VerifyUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyUpdateRequest) Reset()
- func (x *VerifyUpdateRequest) String() string
- type VerifyUpdateResponse
- func (*VerifyUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyUpdateResponse) GetResult() *TestResult
- func (*VerifyUpdateResponse) ProtoMessage()
- func (x *VerifyUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyUpdateResponse) Reset()
- func (x *VerifyUpdateResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( BrowserType_name = map[int32]string{ 0: "UNKNOWN", 1: "ASH", 2: "LACROS_ROOTFS", 3: "LACROS_STATEFUL", } BrowserType_value = map[string]int32{ "UNKNOWN": 0, "ASH": 1, "LACROS_ROOTFS": 2, "LACROS_STATEFUL": 3, } )
Enum value maps for BrowserType.
var ( TestResult_Status_name = map[int32]string{ 0: "NO_STATUS", 1: "PASSED", 2: "FAILED", } TestResult_Status_value = map[string]int32{ "NO_STATUS": 0, "PASSED": 1, "FAILED": 2, } )
Enum value maps for TestResult_Status.
var File_update_test_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUpdateTestServiceServer ¶
func RegisterUpdateTestServiceServer(s *grpc.Server, srv UpdateTestServiceServer)
Types ¶
type BrowserContext ¶
type BrowserContext struct { // The type of supported browsers. Browser BrowserType `protobuf:"varint,1,opt,name=browser,proto3,enum=tast.cros.lacros.BrowserType" json:"browser,omitempty"` // Chrome options used to launch browser. Opts []string `protobuf:"bytes,2,rep,name=opts,proto3" json:"opts,omitempty"` // contains filtered or unexported fields }
BrowserContext is a shared info to configure or check the browser under test.
func (*BrowserContext) Descriptor
deprecated
func (*BrowserContext) Descriptor() ([]byte, []int)
Deprecated: Use BrowserContext.ProtoReflect.Descriptor instead.
func (*BrowserContext) GetBrowser ¶
func (x *BrowserContext) GetBrowser() BrowserType
func (*BrowserContext) GetOpts ¶
func (x *BrowserContext) GetOpts() []string
func (*BrowserContext) ProtoMessage ¶
func (*BrowserContext) ProtoMessage()
func (*BrowserContext) ProtoReflect ¶
func (x *BrowserContext) ProtoReflect() protoreflect.Message
func (*BrowserContext) Reset ¶
func (x *BrowserContext) Reset()
func (*BrowserContext) String ¶
func (x *BrowserContext) String() string
type BrowserType ¶
type BrowserType int32
BrowserType is to specify the types of supported browsers.
const ( BrowserType_UNKNOWN BrowserType = 0 BrowserType_ASH BrowserType = 1 BrowserType_LACROS_ROOTFS BrowserType = 2 BrowserType_LACROS_STATEFUL BrowserType = 3 )
func (BrowserType) Descriptor ¶
func (BrowserType) Descriptor() protoreflect.EnumDescriptor
func (BrowserType) Enum ¶
func (x BrowserType) Enum() *BrowserType
func (BrowserType) EnumDescriptor
deprecated
func (BrowserType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BrowserType.Descriptor instead.
func (BrowserType) Number ¶
func (x BrowserType) Number() protoreflect.EnumNumber
func (BrowserType) String ¶
func (x BrowserType) String() string
func (BrowserType) Type ¶
func (BrowserType) Type() protoreflect.EnumType
type ClearUpdateRequest ¶
type ClearUpdateRequest struct {
// contains filtered or unexported fields
}
func (*ClearUpdateRequest) Descriptor
deprecated
func (*ClearUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearUpdateRequest.ProtoReflect.Descriptor instead.
func (*ClearUpdateRequest) ProtoMessage ¶
func (*ClearUpdateRequest) ProtoMessage()
func (*ClearUpdateRequest) ProtoReflect ¶
func (x *ClearUpdateRequest) ProtoReflect() protoreflect.Message
func (*ClearUpdateRequest) Reset ¶
func (x *ClearUpdateRequest) Reset()
func (*ClearUpdateRequest) String ¶
func (x *ClearUpdateRequest) String() string
type ClearUpdateResponse ¶
type ClearUpdateResponse struct {
// contains filtered or unexported fields
}
func (*ClearUpdateResponse) Descriptor
deprecated
func (*ClearUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClearUpdateResponse.ProtoReflect.Descriptor instead.
func (*ClearUpdateResponse) ProtoMessage ¶
func (*ClearUpdateResponse) ProtoMessage()
func (*ClearUpdateResponse) ProtoReflect ¶
func (x *ClearUpdateResponse) ProtoReflect() protoreflect.Message
func (*ClearUpdateResponse) Reset ¶
func (x *ClearUpdateResponse) Reset()
func (*ClearUpdateResponse) String ¶
func (x *ClearUpdateResponse) String() string
type GetBrowserVersionRequest ¶
type GetBrowserVersionRequest struct { Browser BrowserType `protobuf:"varint,1,opt,name=browser,proto3,enum=tast.cros.lacros.BrowserType" json:"browser,omitempty"` // contains filtered or unexported fields }
func (*GetBrowserVersionRequest) Descriptor
deprecated
func (*GetBrowserVersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBrowserVersionRequest.ProtoReflect.Descriptor instead.
func (*GetBrowserVersionRequest) GetBrowser ¶
func (x *GetBrowserVersionRequest) GetBrowser() BrowserType
func (*GetBrowserVersionRequest) ProtoMessage ¶
func (*GetBrowserVersionRequest) ProtoMessage()
func (*GetBrowserVersionRequest) ProtoReflect ¶
func (x *GetBrowserVersionRequest) ProtoReflect() protoreflect.Message
func (*GetBrowserVersionRequest) Reset ¶
func (x *GetBrowserVersionRequest) Reset()
func (*GetBrowserVersionRequest) String ¶
func (x *GetBrowserVersionRequest) String() string
type GetBrowserVersionResponse ¶
type GetBrowserVersionResponse struct { Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` // contains filtered or unexported fields }
func (*GetBrowserVersionResponse) Descriptor
deprecated
func (*GetBrowserVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBrowserVersionResponse.ProtoReflect.Descriptor instead.
func (*GetBrowserVersionResponse) GetVersions ¶
func (x *GetBrowserVersionResponse) GetVersions() []string
func (*GetBrowserVersionResponse) ProtoMessage ¶
func (*GetBrowserVersionResponse) ProtoMessage()
func (*GetBrowserVersionResponse) ProtoReflect ¶
func (x *GetBrowserVersionResponse) ProtoReflect() protoreflect.Message
func (*GetBrowserVersionResponse) Reset ¶
func (x *GetBrowserVersionResponse) Reset()
func (*GetBrowserVersionResponse) String ¶
func (x *GetBrowserVersionResponse) String() string
type TestResult ¶
type TestResult struct { Status TestResult_Status `protobuf:"varint,1,opt,name=status,proto3,enum=tast.cros.lacros.TestResult_Status" json:"status,omitempty"` StatusDetails string `protobuf:"bytes,2,opt,name=status_details,json=statusDetails,proto3" json:"status_details,omitempty"` // contains filtered or unexported fields }
TestResult is detailed test status data for a verification action in a DUT.
func (*TestResult) Descriptor
deprecated
func (*TestResult) Descriptor() ([]byte, []int)
Deprecated: Use TestResult.ProtoReflect.Descriptor instead.
func (*TestResult) GetStatus ¶
func (x *TestResult) GetStatus() TestResult_Status
func (*TestResult) GetStatusDetails ¶
func (x *TestResult) GetStatusDetails() string
func (*TestResult) ProtoMessage ¶
func (*TestResult) ProtoMessage()
func (*TestResult) ProtoReflect ¶
func (x *TestResult) ProtoReflect() protoreflect.Message
func (*TestResult) Reset ¶
func (x *TestResult) Reset()
func (*TestResult) String ¶
func (x *TestResult) String() string
type TestResult_Status ¶
type TestResult_Status int32
const ( TestResult_NO_STATUS TestResult_Status = 0 TestResult_PASSED TestResult_Status = 1 TestResult_FAILED TestResult_Status = 2 )
func (TestResult_Status) Descriptor ¶
func (TestResult_Status) Descriptor() protoreflect.EnumDescriptor
func (TestResult_Status) Enum ¶
func (x TestResult_Status) Enum() *TestResult_Status
func (TestResult_Status) EnumDescriptor
deprecated
func (TestResult_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestResult_Status.Descriptor instead.
func (TestResult_Status) Number ¶
func (x TestResult_Status) Number() protoreflect.EnumNumber
func (TestResult_Status) String ¶
func (x TestResult_Status) String() string
func (TestResult_Status) Type ¶
func (TestResult_Status) Type() protoreflect.EnumType
type UnimplementedUpdateTestServiceServer ¶
type UnimplementedUpdateTestServiceServer struct { }
UnimplementedUpdateTestServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUpdateTestServiceServer) ClearUpdate ¶
func (*UnimplementedUpdateTestServiceServer) ClearUpdate(context.Context, *ClearUpdateRequest) (*ClearUpdateResponse, error)
func (*UnimplementedUpdateTestServiceServer) GetBrowserVersion ¶
func (*UnimplementedUpdateTestServiceServer) GetBrowserVersion(context.Context, *GetBrowserVersionRequest) (*GetBrowserVersionResponse, error)
func (*UnimplementedUpdateTestServiceServer) VerifyUpdate ¶
func (*UnimplementedUpdateTestServiceServer) VerifyUpdate(context.Context, *VerifyUpdateRequest) (*VerifyUpdateResponse, error)
type UpdateTestServiceClient ¶
type UpdateTestServiceClient interface { // VerifyUpdate sets a DUT with given contexts and checks if the // expected version of Lacros is loaded successfully without crash. VerifyUpdate(ctx context.Context, in *VerifyUpdateRequest, opts ...grpc.CallOption) (*VerifyUpdateResponse, error) // ClearUpdate removes provisioned Lacros in the install path or browser data // if needed. ClearUpdate(ctx context.Context, in *ClearUpdateRequest, opts ...grpc.CallOption) (*ClearUpdateResponse, error) // GetBrowserVersion returns version info of the given browser type. // If multiple Lacros browsers are provisioned in the stateful partition, // all the versions will be returned. GetBrowserVersion(ctx context.Context, in *GetBrowserVersionRequest, opts ...grpc.CallOption) (*GetBrowserVersionResponse, error) }
UpdateTestServiceClient is the client API for UpdateTestService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUpdateTestServiceClient ¶
func NewUpdateTestServiceClient(cc grpc.ClientConnInterface) UpdateTestServiceClient
type UpdateTestServiceServer ¶
type UpdateTestServiceServer interface { // VerifyUpdate sets a DUT with given contexts and checks if the // expected version of Lacros is loaded successfully without crash. VerifyUpdate(context.Context, *VerifyUpdateRequest) (*VerifyUpdateResponse, error) // ClearUpdate removes provisioned Lacros in the install path or browser data // if needed. ClearUpdate(context.Context, *ClearUpdateRequest) (*ClearUpdateResponse, error) // GetBrowserVersion returns version info of the given browser type. // If multiple Lacros browsers are provisioned in the stateful partition, // all the versions will be returned. GetBrowserVersion(context.Context, *GetBrowserVersionRequest) (*GetBrowserVersionResponse, error) }
UpdateTestServiceServer is the server API for UpdateTestService service.
type VerifyUpdateRequest ¶
type VerifyUpdateRequest struct { AshContext *BrowserContext `protobuf:"bytes,1,opt,name=ash_context,json=ashContext,proto3" json:"ash_context,omitempty"` ProvisionedLacrosContext []*BrowserContext `` /* 135-byte string literal not displayed */ // The following fields describe the Lacros to be selected. ExpectedBrowser BrowserType `` // e.g. LACROS_STATEFUL /* 141-byte string literal not displayed */ ExpectedVersion string `protobuf:"bytes,4,opt,name=expected_version,json=expectedVersion,proto3" json:"expected_version,omitempty"` // e.g. "9999.0.0.1" ExpectedComponent string `protobuf:"bytes,5,opt,name=expected_component,json=expectedComponent,proto3" json:"expected_component,omitempty"` // e.g. "lacros-dogfood-dev" for the dev channel // Whether to use UI for verification UseUi bool `protobuf:"varint,6,opt,name=use_ui,json=useUi,proto3" json:"use_ui,omitempty"` // contains filtered or unexported fields }
VerifyUpdateRequest contains the Lacros browser info that is used to verify whether the expected Lacros is selected in the given context of provisioned browsers and Ash configs.
func (*VerifyUpdateRequest) Descriptor
deprecated
func (*VerifyUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyUpdateRequest.ProtoReflect.Descriptor instead.
func (*VerifyUpdateRequest) GetAshContext ¶
func (x *VerifyUpdateRequest) GetAshContext() *BrowserContext
func (*VerifyUpdateRequest) GetExpectedBrowser ¶
func (x *VerifyUpdateRequest) GetExpectedBrowser() BrowserType
func (*VerifyUpdateRequest) GetExpectedComponent ¶
func (x *VerifyUpdateRequest) GetExpectedComponent() string
func (*VerifyUpdateRequest) GetExpectedVersion ¶
func (x *VerifyUpdateRequest) GetExpectedVersion() string
func (*VerifyUpdateRequest) GetProvisionedLacrosContext ¶
func (x *VerifyUpdateRequest) GetProvisionedLacrosContext() []*BrowserContext
func (*VerifyUpdateRequest) GetUseUi ¶
func (x *VerifyUpdateRequest) GetUseUi() bool
func (*VerifyUpdateRequest) ProtoMessage ¶
func (*VerifyUpdateRequest) ProtoMessage()
func (*VerifyUpdateRequest) ProtoReflect ¶
func (x *VerifyUpdateRequest) ProtoReflect() protoreflect.Message
func (*VerifyUpdateRequest) Reset ¶
func (x *VerifyUpdateRequest) Reset()
func (*VerifyUpdateRequest) String ¶
func (x *VerifyUpdateRequest) String() string
type VerifyUpdateResponse ¶
type VerifyUpdateResponse struct { Result *TestResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
VerifyUpdateResponse contains a test result of version comparison for a single action of simulated autoupdate.
func (*VerifyUpdateResponse) Descriptor
deprecated
func (*VerifyUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyUpdateResponse.ProtoReflect.Descriptor instead.
func (*VerifyUpdateResponse) GetResult ¶
func (x *VerifyUpdateResponse) GetResult() *TestResult
func (*VerifyUpdateResponse) ProtoMessage ¶
func (*VerifyUpdateResponse) ProtoMessage()
func (*VerifyUpdateResponse) ProtoReflect ¶
func (x *VerifyUpdateResponse) ProtoReflect() protoreflect.Message
func (*VerifyUpdateResponse) Reset ¶
func (x *VerifyUpdateResponse) Reset()
func (*VerifyUpdateResponse) String ¶
func (x *VerifyUpdateResponse) String() string