chromium/ui/display/util/display_util_unittest.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/display/util/display_util.h"

#include "base/test/metrics/histogram_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/display/test/display_test_util.h"
#include "ui/display/util/edid_parser.h"
#include "ui/gfx/color_space.h"

namespace display {

namespace {

// HP z32x monitor.
const unsigned char kHPz32x[] =;

// Chromebook Samus internal display.
const unsigned char kSamus[] =;

// Chromebook Eve internal display.
const unsigned char kEve[] =;

// Invalid EDID: too short to contain chromaticity nor gamma information.
const unsigned char kInvalidEdid[] =;

// Partially valid EDID: gamma information is marked as non existent.
const unsigned char kEdidWithNoGamma[] =;

// Screebo display with chromaticities near P3
const unsigned char kScreeboP3[] =;

// EDID with only DCI-P3 in colorimetry data block
const unsigned char kCDBP3[] =;

// Chromebook Samsung Galaxy (kohaku) that supports HDR metadata.
constexpr unsigned char kHDR[] =;

// EDID collected in the wild: valid but with primaries in the wrong order.
const unsigned char kSST210[] =;

// EDID of |kSST210| with the order of the primaries corrected. Still invalid
// because the triangle of primaries is too small.
const unsigned char kSST210Corrected[] =;

// This EDID produces blue primary coordinates too far off the expected point,
// which would paint blue colors as purple. See https://crbug.com/809909.
const unsigned char kBrokenBluePrimaries[] =;

// This EDID contains Short Audio Descriptors in the Timing Extension
// Data which indicate LPCM, DTS, and DTS-HD audio.
const unsigned char kDTSAudio[] =;

}  // namespace

TEST(DisplayUtilTest, TestValidDisplaySize) {}

TEST(DisplayUtilTest, GetColorSpaceFromEdid) {}

TEST(DisplayUtilTest, GetInvalidColorSpaceFromEdid) {}

TEST(DisplayUtilTest, GetAudioPassthroughFromEdid) {}

TEST(DisplayUtilTest, MultipleInternalDisplayIds) {}

TEST(DisplayUtilTest, CompareDisplayIdsWithMultipleDisplays) {}

}  // namespace display