blob: 6cb59e3312c5772b24133d76740749d7c73ff2de [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/edid/edid.h>
#include <zxtest/zxtest.h>
TEST(EdidTest, CaeValidationDtdOverflow) {
edid::CeaEdidTimingExtension cea = {};
cea.tag = edid::CeaEdidTimingExtension::kTag;
cea.dtd_start_idx = 2;
ASSERT_FALSE(cea.validate());
}
TEST(EdidTest, EisaVidLookup) {
EXPECT_TRUE(!strcmp(edid::GetEisaVendorName(0x1e6d), "GOLDSTAR COMPANY LTD"));
EXPECT_TRUE(!strcmp(edid::GetEisaVendorName(0x5a63), "VIEWSONIC CORPORATION"));
}