lacros-au: Add autoupdate test service proto

Lacros autoupdate tests will be remote tests that interact with
lab services for provisioning and call a local test service
(defined in the proto in this change) for performing verifications
on a DUT.
See https://sequencediagram.googleplex.com/view/6215323990622208
for the workflow.
See go/lacros-autoupdate-test-proposal for the plan.

BUG=chromium:1247311
TEST=(cros) ~/trunk/src/platform/tast/tools/go.sh generate chromiumos/tast/services/cros/lacros
TEST=Build the proto

Change-Id: Ieca0250d151670d982338b039ec27cfc7240d73f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3169575
Tested-by: Hyung Tae Kim <hyungtaekim@chromium.org>
Reviewed-by: David Haddock <dhaddock@chromium.org>
Reviewed-by: Jun Sheng <shengjun@chromium.org>
Reviewed-by: Kyle Shimabukuro <kyleshima@chromium.org>
Reviewed-by: Jae Hoon Kim <kimjae@chromium.org>
Reviewed-by: Seewai Fu <seewaifu@google.com>
Commit-Queue: Hyung Tae Kim <hyungtaekim@chromium.org>
Tast-Review: Kyle Shimabukuro <kyleshima@chromium.org>
diff --git a/src/chromiumos/tast/services/cros/lacros/gen.go b/src/chromiumos/tast/services/cros/lacros/gen.go
new file mode 100644
index 0000000..229d956
--- /dev/null
+++ b/src/chromiumos/tast/services/cros/lacros/gen.go
@@ -0,0 +1,12 @@
+// Copyright 2021 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+//go:generate protoc -I . --go_out=plugins=grpc:../../../../.. update_test_service.proto
+
+// Package lacros provides the UpdateTestService.
+package lacros
+
+// Run the following command in CrOS chroot to regenerate protocol buffer bindings:
+//
+// ~/trunk/src/platform/tast/tools/go.sh generate chromiumos/tast/services/cros/lacros
diff --git a/src/chromiumos/tast/services/cros/lacros/update_test_service.pb.go b/src/chromiumos/tast/services/cros/lacros/update_test_service.pb.go
new file mode 100644
index 0000000..3c5ed5a
--- /dev/null
+++ b/src/chromiumos/tast/services/cros/lacros/update_test_service.pb.go
@@ -0,0 +1,672 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: update_test_service.proto
+
+package lacros
+
+import (
+	context "context"
+	fmt "fmt"
+	proto "github.com/golang/protobuf/proto"
+	grpc "google.golang.org/grpc"
+	codes "google.golang.org/grpc/codes"
+	status "google.golang.org/grpc/status"
+	math "math"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+
+// BrowserType is to specify the types of supported browsers.
+type BrowserType int32
+
+const (
+	BrowserType_UNKNOWN         BrowserType = 0
+	BrowserType_ASH             BrowserType = 1
+	BrowserType_LACROS_ROOTFS   BrowserType = 2
+	BrowserType_LACROS_STATEFUL BrowserType = 3
+)
+
+var BrowserType_name = map[int32]string{
+	0: "UNKNOWN",
+	1: "ASH",
+	2: "LACROS_ROOTFS",
+	3: "LACROS_STATEFUL",
+}
+
+var BrowserType_value = map[string]int32{
+	"UNKNOWN":         0,
+	"ASH":             1,
+	"LACROS_ROOTFS":   2,
+	"LACROS_STATEFUL": 3,
+}
+
+func (x BrowserType) String() string {
+	return proto.EnumName(BrowserType_name, int32(x))
+}
+
+func (BrowserType) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{0}
+}
+
+type TestResult_Status int32
+
+const (
+	TestResult_NO_STATUS TestResult_Status = 0
+	TestResult_PASSED    TestResult_Status = 1
+	TestResult_FAILED    TestResult_Status = 2
+)
+
+var TestResult_Status_name = map[int32]string{
+	0: "NO_STATUS",
+	1: "PASSED",
+	2: "FAILED",
+}
+
+var TestResult_Status_value = map[string]int32{
+	"NO_STATUS": 0,
+	"PASSED":    1,
+	"FAILED":    2,
+}
+
+func (x TestResult_Status) String() string {
+	return proto.EnumName(TestResult_Status_name, int32(x))
+}
+
+func (TestResult_Status) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{1, 0}
+}
+
+// BrowserContext is a shared info to configure or check the browser under test.
+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"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *BrowserContext) Reset()         { *m = BrowserContext{} }
+func (m *BrowserContext) String() string { return proto.CompactTextString(m) }
+func (*BrowserContext) ProtoMessage()    {}
+func (*BrowserContext) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{0}
+}
+
+func (m *BrowserContext) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_BrowserContext.Unmarshal(m, b)
+}
+func (m *BrowserContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_BrowserContext.Marshal(b, m, deterministic)
+}
+func (m *BrowserContext) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_BrowserContext.Merge(m, src)
+}
+func (m *BrowserContext) XXX_Size() int {
+	return xxx_messageInfo_BrowserContext.Size(m)
+}
+func (m *BrowserContext) XXX_DiscardUnknown() {
+	xxx_messageInfo_BrowserContext.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_BrowserContext proto.InternalMessageInfo
+
+func (m *BrowserContext) GetBrowser() BrowserType {
+	if m != nil {
+		return m.Browser
+	}
+	return BrowserType_UNKNOWN
+}
+
+func (m *BrowserContext) GetOpts() []string {
+	if m != nil {
+		return m.Opts
+	}
+	return nil
+}
+
+// TestResult is detailed test status data for a verification action in a DUT.
+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"`
+	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
+	XXX_unrecognized     []byte            `json:"-"`
+	XXX_sizecache        int32             `json:"-"`
+}
+
+func (m *TestResult) Reset()         { *m = TestResult{} }
+func (m *TestResult) String() string { return proto.CompactTextString(m) }
+func (*TestResult) ProtoMessage()    {}
+func (*TestResult) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{1}
+}
+
+func (m *TestResult) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_TestResult.Unmarshal(m, b)
+}
+func (m *TestResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_TestResult.Marshal(b, m, deterministic)
+}
+func (m *TestResult) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_TestResult.Merge(m, src)
+}
+func (m *TestResult) XXX_Size() int {
+	return xxx_messageInfo_TestResult.Size(m)
+}
+func (m *TestResult) XXX_DiscardUnknown() {
+	xxx_messageInfo_TestResult.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TestResult proto.InternalMessageInfo
+
+func (m *TestResult) GetStatus() TestResult_Status {
+	if m != nil {
+		return m.Status
+	}
+	return TestResult_NO_STATUS
+}
+
+func (m *TestResult) GetStatusDetails() string {
+	if m != nil {
+		return m.StatusDetails
+	}
+	return ""
+}
+
+// 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.
+type VerifyUpdateRequest struct {
+	AshContext               *BrowserContext   `protobuf:"bytes,1,opt,name=ash_context,json=ashContext,proto3" json:"ash_context,omitempty"`
+	ProvisionedLacrosContext []*BrowserContext `protobuf:"bytes,2,rep,name=provisioned_lacros_context,json=provisionedLacrosContext,proto3" json:"provisioned_lacros_context,omitempty"`
+	// The following fields describe the Lacros to be selected.
+	ExpectedBrowser   BrowserType `protobuf:"varint,3,opt,name=expected_browser,json=expectedBrowser,proto3,enum=tast.cros.lacros.BrowserType" json:"expected_browser,omitempty"`
+	ExpectedVersion   string      `protobuf:"bytes,4,opt,name=expected_version,json=expectedVersion,proto3" json:"expected_version,omitempty"`
+	ExpectedComponent string      `protobuf:"bytes,5,opt,name=expected_component,json=expectedComponent,proto3" json:"expected_component,omitempty"`
+	// Whether to use UI for verification
+	UseUi                bool     `protobuf:"varint,6,opt,name=use_ui,json=useUi,proto3" json:"use_ui,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *VerifyUpdateRequest) Reset()         { *m = VerifyUpdateRequest{} }
+func (m *VerifyUpdateRequest) String() string { return proto.CompactTextString(m) }
+func (*VerifyUpdateRequest) ProtoMessage()    {}
+func (*VerifyUpdateRequest) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{2}
+}
+
+func (m *VerifyUpdateRequest) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_VerifyUpdateRequest.Unmarshal(m, b)
+}
+func (m *VerifyUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_VerifyUpdateRequest.Marshal(b, m, deterministic)
+}
+func (m *VerifyUpdateRequest) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_VerifyUpdateRequest.Merge(m, src)
+}
+func (m *VerifyUpdateRequest) XXX_Size() int {
+	return xxx_messageInfo_VerifyUpdateRequest.Size(m)
+}
+func (m *VerifyUpdateRequest) XXX_DiscardUnknown() {
+	xxx_messageInfo_VerifyUpdateRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_VerifyUpdateRequest proto.InternalMessageInfo
+
+func (m *VerifyUpdateRequest) GetAshContext() *BrowserContext {
+	if m != nil {
+		return m.AshContext
+	}
+	return nil
+}
+
+func (m *VerifyUpdateRequest) GetProvisionedLacrosContext() []*BrowserContext {
+	if m != nil {
+		return m.ProvisionedLacrosContext
+	}
+	return nil
+}
+
+func (m *VerifyUpdateRequest) GetExpectedBrowser() BrowserType {
+	if m != nil {
+		return m.ExpectedBrowser
+	}
+	return BrowserType_UNKNOWN
+}
+
+func (m *VerifyUpdateRequest) GetExpectedVersion() string {
+	if m != nil {
+		return m.ExpectedVersion
+	}
+	return ""
+}
+
+func (m *VerifyUpdateRequest) GetExpectedComponent() string {
+	if m != nil {
+		return m.ExpectedComponent
+	}
+	return ""
+}
+
+func (m *VerifyUpdateRequest) GetUseUi() bool {
+	if m != nil {
+		return m.UseUi
+	}
+	return false
+}
+
+// VerifyUpdateResponse contains a test result of version comparison for
+// a single action of simulated autoupdate.
+type VerifyUpdateResponse struct {
+	Result               *TestResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
+	XXX_unrecognized     []byte      `json:"-"`
+	XXX_sizecache        int32       `json:"-"`
+}
+
+func (m *VerifyUpdateResponse) Reset()         { *m = VerifyUpdateResponse{} }
+func (m *VerifyUpdateResponse) String() string { return proto.CompactTextString(m) }
+func (*VerifyUpdateResponse) ProtoMessage()    {}
+func (*VerifyUpdateResponse) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{3}
+}
+
+func (m *VerifyUpdateResponse) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_VerifyUpdateResponse.Unmarshal(m, b)
+}
+func (m *VerifyUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_VerifyUpdateResponse.Marshal(b, m, deterministic)
+}
+func (m *VerifyUpdateResponse) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_VerifyUpdateResponse.Merge(m, src)
+}
+func (m *VerifyUpdateResponse) XXX_Size() int {
+	return xxx_messageInfo_VerifyUpdateResponse.Size(m)
+}
+func (m *VerifyUpdateResponse) XXX_DiscardUnknown() {
+	xxx_messageInfo_VerifyUpdateResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_VerifyUpdateResponse proto.InternalMessageInfo
+
+func (m *VerifyUpdateResponse) GetResult() *TestResult {
+	if m != nil {
+		return m.Result
+	}
+	return nil
+}
+
+type ClearUpdateRequest struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *ClearUpdateRequest) Reset()         { *m = ClearUpdateRequest{} }
+func (m *ClearUpdateRequest) String() string { return proto.CompactTextString(m) }
+func (*ClearUpdateRequest) ProtoMessage()    {}
+func (*ClearUpdateRequest) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{4}
+}
+
+func (m *ClearUpdateRequest) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_ClearUpdateRequest.Unmarshal(m, b)
+}
+func (m *ClearUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_ClearUpdateRequest.Marshal(b, m, deterministic)
+}
+func (m *ClearUpdateRequest) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_ClearUpdateRequest.Merge(m, src)
+}
+func (m *ClearUpdateRequest) XXX_Size() int {
+	return xxx_messageInfo_ClearUpdateRequest.Size(m)
+}
+func (m *ClearUpdateRequest) XXX_DiscardUnknown() {
+	xxx_messageInfo_ClearUpdateRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ClearUpdateRequest proto.InternalMessageInfo
+
+type ClearUpdateResponse struct {
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *ClearUpdateResponse) Reset()         { *m = ClearUpdateResponse{} }
+func (m *ClearUpdateResponse) String() string { return proto.CompactTextString(m) }
+func (*ClearUpdateResponse) ProtoMessage()    {}
+func (*ClearUpdateResponse) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{5}
+}
+
+func (m *ClearUpdateResponse) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_ClearUpdateResponse.Unmarshal(m, b)
+}
+func (m *ClearUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_ClearUpdateResponse.Marshal(b, m, deterministic)
+}
+func (m *ClearUpdateResponse) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_ClearUpdateResponse.Merge(m, src)
+}
+func (m *ClearUpdateResponse) XXX_Size() int {
+	return xxx_messageInfo_ClearUpdateResponse.Size(m)
+}
+func (m *ClearUpdateResponse) XXX_DiscardUnknown() {
+	xxx_messageInfo_ClearUpdateResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ClearUpdateResponse proto.InternalMessageInfo
+
+type GetBrowserVersionRequest struct {
+	Browser              BrowserType `protobuf:"varint,1,opt,name=browser,proto3,enum=tast.cros.lacros.BrowserType" json:"browser,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
+	XXX_unrecognized     []byte      `json:"-"`
+	XXX_sizecache        int32       `json:"-"`
+}
+
+func (m *GetBrowserVersionRequest) Reset()         { *m = GetBrowserVersionRequest{} }
+func (m *GetBrowserVersionRequest) String() string { return proto.CompactTextString(m) }
+func (*GetBrowserVersionRequest) ProtoMessage()    {}
+func (*GetBrowserVersionRequest) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{6}
+}
+
+func (m *GetBrowserVersionRequest) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_GetBrowserVersionRequest.Unmarshal(m, b)
+}
+func (m *GetBrowserVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_GetBrowserVersionRequest.Marshal(b, m, deterministic)
+}
+func (m *GetBrowserVersionRequest) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_GetBrowserVersionRequest.Merge(m, src)
+}
+func (m *GetBrowserVersionRequest) XXX_Size() int {
+	return xxx_messageInfo_GetBrowserVersionRequest.Size(m)
+}
+func (m *GetBrowserVersionRequest) XXX_DiscardUnknown() {
+	xxx_messageInfo_GetBrowserVersionRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GetBrowserVersionRequest proto.InternalMessageInfo
+
+func (m *GetBrowserVersionRequest) GetBrowser() BrowserType {
+	if m != nil {
+		return m.Browser
+	}
+	return BrowserType_UNKNOWN
+}
+
+type GetBrowserVersionResponse struct {
+	Versions             []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *GetBrowserVersionResponse) Reset()         { *m = GetBrowserVersionResponse{} }
+func (m *GetBrowserVersionResponse) String() string { return proto.CompactTextString(m) }
+func (*GetBrowserVersionResponse) ProtoMessage()    {}
+func (*GetBrowserVersionResponse) Descriptor() ([]byte, []int) {
+	return fileDescriptor_ddd416dc21c25e8a, []int{7}
+}
+
+func (m *GetBrowserVersionResponse) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_GetBrowserVersionResponse.Unmarshal(m, b)
+}
+func (m *GetBrowserVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_GetBrowserVersionResponse.Marshal(b, m, deterministic)
+}
+func (m *GetBrowserVersionResponse) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_GetBrowserVersionResponse.Merge(m, src)
+}
+func (m *GetBrowserVersionResponse) XXX_Size() int {
+	return xxx_messageInfo_GetBrowserVersionResponse.Size(m)
+}
+func (m *GetBrowserVersionResponse) XXX_DiscardUnknown() {
+	xxx_messageInfo_GetBrowserVersionResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GetBrowserVersionResponse proto.InternalMessageInfo
+
+func (m *GetBrowserVersionResponse) GetVersions() []string {
+	if m != nil {
+		return m.Versions
+	}
+	return nil
+}
+
+func init() {
+	proto.RegisterEnum("tast.cros.lacros.BrowserType", BrowserType_name, BrowserType_value)
+	proto.RegisterEnum("tast.cros.lacros.TestResult_Status", TestResult_Status_name, TestResult_Status_value)
+	proto.RegisterType((*BrowserContext)(nil), "tast.cros.lacros.BrowserContext")
+	proto.RegisterType((*TestResult)(nil), "tast.cros.lacros.TestResult")
+	proto.RegisterType((*VerifyUpdateRequest)(nil), "tast.cros.lacros.VerifyUpdateRequest")
+	proto.RegisterType((*VerifyUpdateResponse)(nil), "tast.cros.lacros.VerifyUpdateResponse")
+	proto.RegisterType((*ClearUpdateRequest)(nil), "tast.cros.lacros.ClearUpdateRequest")
+	proto.RegisterType((*ClearUpdateResponse)(nil), "tast.cros.lacros.ClearUpdateResponse")
+	proto.RegisterType((*GetBrowserVersionRequest)(nil), "tast.cros.lacros.GetBrowserVersionRequest")
+	proto.RegisterType((*GetBrowserVersionResponse)(nil), "tast.cros.lacros.GetBrowserVersionResponse")
+}
+
+func init() { proto.RegisterFile("update_test_service.proto", fileDescriptor_ddd416dc21c25e8a) }
+
+var fileDescriptor_ddd416dc21c25e8a = []byte{
+	// 613 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xd1, 0x4e, 0xdb, 0x4c,
+	0x10, 0x85, 0x71, 0x02, 0x06, 0x26, 0x3f, 0xe0, 0x0c, 0x20, 0x99, 0xe8, 0xaf, 0x14, 0xb9, 0x80,
+	0x52, 0xaa, 0x26, 0x12, 0xad, 0xc4, 0x45, 0xaf, 0x42, 0x80, 0x52, 0x11, 0x25, 0x95, 0x9d, 0x50,
+	0xa9, 0x6a, 0x6b, 0x19, 0x67, 0x2a, 0x2c, 0x05, 0xaf, 0xeb, 0x5d, 0x53, 0x78, 0x9c, 0xbe, 0x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c, 0xf5, 0xd3,
+	0x95, 0x71, 0x05, 0x00, 0x00,
+}
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ context.Context
+var _ grpc.ClientConn
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+const _ = grpc.SupportPackageIsVersion4
+
+// 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.
+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)
+}
+
+type updateTestServiceClient struct {
+	cc *grpc.ClientConn
+}
+
+func NewUpdateTestServiceClient(cc *grpc.ClientConn) UpdateTestServiceClient {
+	return &updateTestServiceClient{cc}
+}
+
+func (c *updateTestServiceClient) VerifyUpdate(ctx context.Context, in *VerifyUpdateRequest, opts ...grpc.CallOption) (*VerifyUpdateResponse, error) {
+	out := new(VerifyUpdateResponse)
+	err := c.cc.Invoke(ctx, "/tast.cros.lacros.UpdateTestService/VerifyUpdate", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *updateTestServiceClient) ClearUpdate(ctx context.Context, in *ClearUpdateRequest, opts ...grpc.CallOption) (*ClearUpdateResponse, error) {
+	out := new(ClearUpdateResponse)
+	err := c.cc.Invoke(ctx, "/tast.cros.lacros.UpdateTestService/ClearUpdate", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *updateTestServiceClient) GetBrowserVersion(ctx context.Context, in *GetBrowserVersionRequest, opts ...grpc.CallOption) (*GetBrowserVersionResponse, error) {
+	out := new(GetBrowserVersionResponse)
+	err := c.cc.Invoke(ctx, "/tast.cros.lacros.UpdateTestService/GetBrowserVersion", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+// UpdateTestServiceServer is the server API for UpdateTestService service.
+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)
+}
+
+// UnimplementedUpdateTestServiceServer can be embedded to have forward compatible implementations.
+type UnimplementedUpdateTestServiceServer struct {
+}
+
+func (*UnimplementedUpdateTestServiceServer) VerifyUpdate(ctx context.Context, req *VerifyUpdateRequest) (*VerifyUpdateResponse, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method VerifyUpdate not implemented")
+}
+func (*UnimplementedUpdateTestServiceServer) ClearUpdate(ctx context.Context, req *ClearUpdateRequest) (*ClearUpdateResponse, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method ClearUpdate not implemented")
+}
+func (*UnimplementedUpdateTestServiceServer) GetBrowserVersion(ctx context.Context, req *GetBrowserVersionRequest) (*GetBrowserVersionResponse, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetBrowserVersion not implemented")
+}
+
+func RegisterUpdateTestServiceServer(s *grpc.Server, srv UpdateTestServiceServer) {
+	s.RegisterService(&_UpdateTestService_serviceDesc, srv)
+}
+
+func _UpdateTestService_VerifyUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(VerifyUpdateRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UpdateTestServiceServer).VerifyUpdate(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/tast.cros.lacros.UpdateTestService/VerifyUpdate",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UpdateTestServiceServer).VerifyUpdate(ctx, req.(*VerifyUpdateRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _UpdateTestService_ClearUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(ClearUpdateRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UpdateTestServiceServer).ClearUpdate(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/tast.cros.lacros.UpdateTestService/ClearUpdate",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UpdateTestServiceServer).ClearUpdate(ctx, req.(*ClearUpdateRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _UpdateTestService_GetBrowserVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(GetBrowserVersionRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UpdateTestServiceServer).GetBrowserVersion(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/tast.cros.lacros.UpdateTestService/GetBrowserVersion",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UpdateTestServiceServer).GetBrowserVersion(ctx, req.(*GetBrowserVersionRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+var _UpdateTestService_serviceDesc = grpc.ServiceDesc{
+	ServiceName: "tast.cros.lacros.UpdateTestService",
+	HandlerType: (*UpdateTestServiceServer)(nil),
+	Methods: []grpc.MethodDesc{
+		{
+			MethodName: "VerifyUpdate",
+			Handler:    _UpdateTestService_VerifyUpdate_Handler,
+		},
+		{
+			MethodName: "ClearUpdate",
+			Handler:    _UpdateTestService_ClearUpdate_Handler,
+		},
+		{
+			MethodName: "GetBrowserVersion",
+			Handler:    _UpdateTestService_GetBrowserVersion_Handler,
+		},
+	},
+	Streams:  []grpc.StreamDesc{},
+	Metadata: "update_test_service.proto",
+}
diff --git a/src/chromiumos/tast/services/cros/lacros/update_test_service.proto b/src/chromiumos/tast/services/cros/lacros/update_test_service.proto
new file mode 100644
index 0000000..0606fee
--- /dev/null
+++ b/src/chromiumos/tast/services/cros/lacros/update_test_service.proto
@@ -0,0 +1,90 @@
+// Copyright 2021 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto3";
+
+package tast.cros.lacros;
+
+option go_package = "chromiumos/tast/services/cros/lacros";
+
+
+// BrowserType is to specify the types of supported browsers.
+enum BrowserType {
+  UNKNOWN = 0;
+  ASH = 1;
+  LACROS_ROOTFS = 2;
+  LACROS_STATEFUL = 3;
+}
+
+// BrowserContext is a shared info to configure or check the browser under test.
+message BrowserContext {
+  // The type of supported browsers.
+  BrowserType browser = 1;
+  // Chrome options used to launch browser.
+  repeated string opts = 2;
+}
+
+// TestResult is detailed test status data for a verification action in a DUT.
+message TestResult {
+  enum Status {
+    NO_STATUS = 0;
+    PASSED = 1;
+    FAILED = 2;
+  }
+  Status status = 1;
+  string status_details = 2;
+}
+
+// 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.
+message VerifyUpdateRequest {
+  BrowserContext ash_context = 1;
+  repeated BrowserContext provisioned_lacros_context = 2;
+
+  // The following fields describe the Lacros to be selected.
+  BrowserType expected_browser = 3; // e.g. LACROS_STATEFUL
+  string expected_version = 4;  // e.g. "9999.0.0.1"
+  string expected_component = 5;  // e.g. "lacros-dogfood-dev" for the dev channel
+
+  // Whether to use UI for verification
+  bool use_ui = 6;
+}
+
+// VerifyUpdateResponse contains a test result of version comparison for
+// a single action of simulated autoupdate.
+message VerifyUpdateResponse {
+  TestResult result = 1;
+}
+
+message ClearUpdateRequest {
+}
+
+message ClearUpdateResponse {
+}
+
+message GetBrowserVersionRequest {
+  BrowserType browser = 1;
+}
+
+message GetBrowserVersionResponse {
+  repeated string versions = 1;
+}
+
+// UpdateTestService verifies Lacros autoupdate scenarios for remote tests.
+// Each API should be able to be run in no particular order.
+service UpdateTestService {
+  // VerifyUpdate sets a DUT with given contexts and checks if the
+  // expected version of Lacros is loaded successfully without crash.
+  rpc VerifyUpdate(VerifyUpdateRequest) returns (VerifyUpdateResponse) {}
+
+  // ClearUpdate removes provisioned Lacros in the install path or browser data
+  // if needed.
+  rpc ClearUpdate(ClearUpdateRequest) returns (ClearUpdateResponse) {}
+
+  // 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.
+  rpc GetBrowserVersion(GetBrowserVersionRequest) returns (GetBrowserVersionResponse) {}
+}