#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/display/util/edid_parser.h"
#include <stdint.h>
#include <memory>
#include "base/containers/flat_set.h"
#include "base/hash/md5.h"
#include "base/numerics/ranges.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColorSpace.h"
#include "ui/display/types/display_constants.h"
#include "ui/gfx/geometry/size.h"
AssertionFailure;
AssertionSuccess;
TestWithParam;
ValuesIn;
namespace display {
namespace {
constexpr unsigned char kBadDisplayName[] = …;
constexpr size_t kBadDisplayNameLength = …;
constexpr unsigned char kNormalDisplay[] = …;
constexpr size_t kNormalDisplayLength = …;
constexpr unsigned char kNoMaxImageSizeDisplay[] = …;
constexpr size_t kNoMaxImageSizeDisplayLength = …;
constexpr unsigned char kBlockZeroSerialNumberOnlyDisplay[] = …;
constexpr size_t kBlockZeroSerialNumberOnlyDisplayLength = …;
constexpr unsigned char kNoSerialNumberDisplay[] = …;
constexpr size_t kNoSerialNumberDisplayLength = …;
constexpr unsigned char kNoWeekOfManufactureDisplay[] = …;
constexpr size_t kNoWeekOfManufactureDisplayLength = …;
constexpr unsigned char kModelYearDisplay[] = …;
constexpr size_t kModelYearDisplayLength = …;
constexpr unsigned char kInternalDisplay[] = …;
constexpr size_t kInternalDisplayLength = …;
constexpr unsigned char kOverscanDisplay[] = …;
constexpr size_t kOverscanDisplayLength = …;
constexpr unsigned char kMisdetectedDisplay[] = …;
constexpr size_t kMisdetectedDisplayLength = …;
constexpr unsigned char kLP2565A[] = …;
constexpr size_t kLP2565ALength = …;
constexpr unsigned char kLP2565B[] = …;
constexpr size_t kLP2565BLength = …;
constexpr unsigned char kHPz32x[] = …;
constexpr size_t kHPz32xLength = …;
constexpr unsigned char kSamus[] = …;
constexpr size_t kSamusLength = …;
constexpr unsigned char kEve[] = …;
constexpr size_t kEveLength = …;
constexpr unsigned char kHDRMetadata[] = …;
constexpr size_t kHDRMetadataLength = …;
constexpr unsigned char kTiledDisplay[] = …;
constexpr size_t kTiledDisplayLength = …;
const std::string kNoSerialNumber = …;
const gfx::Size kNoMaxImageSize = …;
constexpr uint8_t kNoWeekOfManufactureTag = …;
constexpr uint8_t kModelYearTag = …;
const std::string kGenericBlockZeroHashedSerialNumber = …;
const std::string kNormalDisplayHashedDescriptorBlockSerialNumber = …;
constexpr SkColorSpacePrimaries kNormalDisplayPrimaries = …;
constexpr SkColorSpacePrimaries kInternalDisplayPrimaries = …;
constexpr SkColorSpacePrimaries kOverscanDisplayPrimaries = …;
constexpr SkColorSpacePrimaries kMisdetectedDisplayPrimaries = …;
constexpr SkColorSpacePrimaries kLP2565APrimaries = …;
constexpr SkColorSpacePrimaries kLP2565BPrimaries = …;
constexpr SkColorSpacePrimaries kHPz32xPrimaries = …;
constexpr SkColorSpacePrimaries kSamusPrimaries = …;
constexpr SkColorSpacePrimaries kEvePrimaries = …;
constexpr SkColorSpacePrimaries kHDRPrimaries = …;
constexpr SkColorSpacePrimaries kDellTiledPrimaries = …;
constexpr static float kPrimariesPrecision = …;
::testing::AssertionResult SkColorSpacePrimariesEquals(
const char* lhs_expr,
const char* rhs_expr,
const SkColorSpacePrimaries& lhs,
const SkColorSpacePrimaries& rhs) { … }
}
struct TestParams { … } kTestCases[] = …;
class EDIDParserTest : public TestWithParam<TestParams> { … };
TEST_P(EDIDParserTest, ParseEdids) { … }
INSTANTIATE_TEST_SUITE_P(…);
}