#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 {
class TestOverlayProcessor : public OverlayProcessorUsingStrategy { … };
}
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) { … }
}