Flutter Engine
Loading...
Searching...
No Matches
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
"
8
#include "
impeller/renderer/pipeline_descriptor.h
"
9
10
namespace
impeller
{
11
namespace
testing {
12
13
TEST
(PipelineDescriptorTest, PrimitiveTypeHashEquality) {
14
PipelineDescriptor
descA;
15
PipelineDescriptor
descB;
16
17
ASSERT_TRUE(descA.
IsEqual
(descB));
18
ASSERT_EQ(descA.
GetHash
(), descB.
GetHash
());
19
20
descA.
SetPrimitiveType
(
PrimitiveType::kTriangleStrip
);
21
22
ASSERT_FALSE(descA.
IsEqual
(descB));
23
ASSERT_NE(descA.
GetHash
(), descB.
GetHash
());
24
}
25
26
}
// namespace testing
27
}
// namespace impeller
impeller::PipelineDescriptor
Definition
pipeline_descriptor.h:24
impeller::PipelineDescriptor::GetHash
std::size_t GetHash() const override
Definition
pipeline_descriptor.cc:22
impeller::PipelineDescriptor::IsEqual
bool IsEqual(const PipelineDescriptor &other) const override
Definition
pipeline_descriptor.cc:52
impeller::PipelineDescriptor::SetPrimitiveType
void SetPrimitiveType(PrimitiveType type)
Definition
pipeline_descriptor.cc:268
flutter::TEST
TEST(FrameTimingsRecorderTest, RecordVsync)
Definition
frame_timings_recorder_unittests.cc:22
impeller
Definition
texture.h:16
impeller::PrimitiveType::kTriangleStrip
@ kTriangleStrip
pipeline_descriptor.h
testing.h
impeller
renderer
pipeline_descriptor_unittests.cc
Generated on Thu Nov 6 2025 16:11:24 for Flutter Engine by
1.9.8