blob: 86618fad736a4adbc4c40680c351361642651615 [file] [log] [blame]
// Copyright 2020 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.
package platform
import (
rppb "chromiumos/system_api/runtime_probe_proto"
func init() {
Func: CrosRuntimeProbeEdid,
Desc: "Checks that edid probe results are expected",
Contacts: []string{
Attr: []string{"group:runtime_probe"},
SoftwareDeps: []string{"racc"},
Vars: []string{"autotest_host_info_labels"},
// CrosRuntimeProbeEdid checks if the edid names in cros-label are
// consistent with probed names from runtime_probe.
func CrosRuntimeProbeEdid(ctx context.Context, s *testing.State) {
categories := []string{"display_panel"}
getComponents := func(result *rppb.ProbeResult, category string) ([]runtimeprobe.Component, error) {
var comps []runtimeprobe.Component
var rppbComps []*rppb.Edid
switch category {
case "display_panel":
rppbComps = result.GetDisplayPanel()
return nil, errors.Errorf("unknown category %s", category)
for _, comp := range rppbComps {
comps = append(comps, comp)
return comps, nil
runtimeprobe.GenericTest(ctx, s, categories, getComponents, false)