5#ifndef FLUTTER_DISPLAY_LIST_TESTING_DL_TEST_EQUALITY_H_
6#define FLUTTER_DISPLAY_LIST_TESTING_DL_TEST_EQUALITY_H_
8#include "flutter/display_list/dl_attributes.h"
9#include "flutter/display_list/utils/dl_comparable.h"
10#include "gtest/gtest.h"
17 ASSERT_TRUE(source1 == source2);
18 ASSERT_TRUE(source2 == source1);
19 ASSERT_FALSE(source1 != source2);
20 ASSERT_FALSE(source2 != source1);
21 ASSERT_EQ(source1, source2);
22 ASSERT_EQ(source2, source1);
23 ASSERT_TRUE(
Equals(&source1, &source2));
24 ASSERT_TRUE(
Equals(&source2, &source1));
29 ASSERT_FALSE(source1 == source2) << label;
30 ASSERT_FALSE(source2 == source1) << label;
31 ASSERT_TRUE(source1 != source2) << label;
32 ASSERT_TRUE(source2 != source1) << label;
33 ASSERT_NE(source1, source2) << label;
34 ASSERT_NE(source2, source1) << label;
35 ASSERT_TRUE(
NotEquals(&source1, &source2));
36 ASSERT_TRUE(
NotEquals(&source2, &source1));
static void TestNotEquals(T &source1, T &source2, const std::string &label)
static void TestEquals(T &source1, T &source2)
bool Equals(const T *a, const T *b)
bool NotEquals(const T *a, const T *b)