chromium/components/viz/service/display/overlay_combination_cache_unittest.cc

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

#include <algorithm>
#include <cstddef>
#include <memory>
#include <vector>

#include "base/containers/span.h"
#include "components/viz/common/quads/compositor_render_pass.h"
#include "components/viz/common/resources/resource_id.h"
#include "components/viz/service/display/overlay_candidate.h"
#include "components/viz/service/display/overlay_combination_cache.h"
#include "components/viz/service/display/overlay_processor_interface.h"
#include "components/viz/service/display/overlay_processor_strategy.h"
#include "components/viz/service/display/overlay_processor_using_strategy.h"
#include "components/viz/service/display/overlay_proposed_candidate.h"
#include "components/viz/service/display/overlay_strategy_single_on_top.h"
#include "components/viz/service/display/overlay_strategy_underlay.h"
#include "components/viz/test/compositor_frame_helpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ElementsAre;
ElementsAreArray;
CandidateCombination;
CandidateId;

namespace viz {
namespace {

// We only need this class to pass a pointer to OverlayStrategySingleOnTop.
class TestOverlayProcessor : public OverlayProcessorUsingStrategy {};

}  // namespace

class OverlayCombinationCacheTest : public testing::Test {};

TEST_F(OverlayCombinationCacheTest, NoCandidates) {}

TEST_F(OverlayCombinationCacheTest, AllCombosFail) {}

TEST_F(OverlayCombinationCacheTest, SomePass) {}

TEST_F(OverlayCombinationCacheTest, CandidatesChange) {}

TEST_F(OverlayCombinationCacheTest, ClearCache) {}

TEST_F(OverlayCombinationCacheTest, GetConsideredCandidatesUnique) {}

TEST_F(OverlayCombinationCacheTest, GetConsideredCandidatesWithDuplicates) {}

TEST_F(OverlayCombinationCacheTest, GetIds) {}

TEST_F(OverlayCombinationCacheTest, GetPowerSortedCombinations) {}

TEST_F(OverlayCombinationCacheTest, IdMapper) {}

}  // namespace viz