Flutter Engine
The Flutter Engine
pipeline_descriptor_unittests.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include <unordered_set>
6
7#include "flutter/testing/testing.h"
9
10namespace impeller {
11namespace testing {
12
13TEST(PipelineDescriptorTest, PrimitiveTypeHashEquality) {
16
17 ASSERT_TRUE(descA.IsEqual(descB));
18 ASSERT_EQ(descA.GetHash(), descB.GetHash());
19
21
22 ASSERT_FALSE(descA.IsEqual(descB));
23 ASSERT_NE(descA.GetHash(), descB.GetHash());
24}
25
26} // namespace testing
27} // namespace impeller
std::size_t GetHash() const override
bool IsEqual(const PipelineDescriptor &other) const override
void SetPrimitiveType(PrimitiveType type)
TEST(AiksCanvasTest, EmptyCullRect)