chromium/components/viz/test/draw_quad_matchers.cc

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

#include "components/viz/test/draw_quad_matchers.h"

#include "components/viz/common/quads/compositor_render_pass_draw_quad.h"
#include "components/viz/common/quads/shared_quad_state.h"
#include "components/viz/common/quads/solid_color_draw_quad.h"

namespace viz {
namespace {

const char* MaterialToString(DrawQuad::Material material) {}

// Produces a matcher for a DrawQuad that matches on quad material.
testing::Matcher<const DrawQuad*> IsQuadType(
    DrawQuad::Material expected_material) {}

testing::Matcher<const DrawQuad*> HasSharedQuadState(
    testing::Matcher<const SharedQuadState*> matcher) {}

}  // namespace

void PrintTo(DrawQuad::Material material, ::std::ostream* os) {}

void PrintTo(const OffsetTag& offset_tag, ::std::ostream* os) {}

testing::Matcher<const DrawQuad*> IsSolidColorQuad() {}

testing::Matcher<const DrawQuad*> IsSolidColorQuad(SkColor4f expected_color) {}

testing::Matcher<const DrawQuad*> IsTextureQuad() {}

testing::Matcher<const DrawQuad*> IsSurfaceQuad() {}

testing::Matcher<const DrawQuad*> IsCompositorRenderPassQuad(
    CompositorRenderPassId id) {}

testing::Matcher<const DrawQuad*> IsAggregatedRenderPassQuad() {}

testing::Matcher<const DrawQuad*> HasRect(const gfx::Rect& rect) {}

testing::Matcher<const DrawQuad*> HasVisibleRect(
    const gfx::Rect& visible_rect) {}

testing::Matcher<const DrawQuad*> HasTransform(
    const gfx::Transform& transform) {}

testing::Matcher<const DrawQuad*> HasOpacity(float opacity) {}

testing::Matcher<const DrawQuad*> AreContentsOpaque(bool opaque) {}

testing::Matcher<const DrawQuad*> HasClipRect(
    std::optional<gfx::Rect> clip_rect) {}

testing::Matcher<const DrawQuad*> HasOffsetTag(OffsetTag offset_tag) {}

testing::Matcher<const DrawQuad*> HasLayerId(uint32_t layer_id) {}

testing::Matcher<const DrawQuad*> HasLayerNamespaceId(
    uint32_t layer_namespace_id) {}

testing::Matcher<const DrawQuad*> HasMaskFilterInfo(
    const gfx::MaskFilterInfo& mask_filter_info) {}

}  // namespace viz