Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
rect_unittest.cc File Reference
#include <cstddef>
#include <limits>
#include "ax_build/build_config.h"
#include "gfx/test/gfx_util.h"
#include "gtest/gtest.h"
#include "rect.h"
#include "rect_conversions.h"

Go to the source code of this file.

Namespaces

namespace  gfx
 

Macros

#define EXPECT_FLOAT_AND_NAN_EQ(a, b)
 

Functions

template<typename T , size_t N>
constexpr size_t gfx::size (const T(&array)[N]) noexcept
 
 gfx::TEST (RectTest, Contains)
 
 gfx::TEST (RectTest, Intersects)
 
 gfx::TEST (RectTest, Intersect)
 
 gfx::TEST (RectTest, Union)
 
 gfx::TEST (RectTest, Equals)
 
 gfx::TEST (RectTest, AdjustToFit)
 
 gfx::TEST (RectTest, Subtract)
 
 gfx::TEST (RectTest, IsEmpty)
 
 gfx::TEST (RectTest, SplitVertically)
 
 gfx::TEST (RectTest, CenterPoint)
 
 gfx::TEST (RectTest, CenterPointF)
 
 gfx::TEST (RectTest, SharesEdgeWith)
 
 gfx::TEST (RectTest, ScaleRect)
 
 gfx::TEST (RectTest, ToEnclosedRect)
 
 gfx::TEST (RectTest, ToEnclosingRect)
 
 gfx::TEST (RectTest, ToEnclosingRectIgnoringError)
 
 gfx::TEST (RectTest, ToNearestRect)
 
 gfx::TEST (RectTest, ToFlooredRect)
 
 gfx::TEST (RectTest, ScaleToEnclosedRect)
 
 gfx::TEST (RectTest, ScaleToEnclosingRect)
 
 gfx::TEST (RectTest, ToRectF)
 
 gfx::TEST (RectTest, BoundingRect)
 
 gfx::TEST (RectTest, IsExpressibleAsRect)
 
 gfx::TEST (RectTest, Offset)
 
 gfx::TEST (RectTest, Corners)
 
 gfx::TEST (RectTest, Centers)
 
 gfx::TEST (RectTest, Transpose)
 
 gfx::TEST (RectTest, ManhattanDistanceToPoint)
 
 gfx::TEST (RectTest, ManhattanInternalDistance)
 
 gfx::TEST (RectTest, IntegerOverflow)
 
 gfx::TEST (RectTest, ScaleToEnclosingRectSafe)
 

Macro Definition Documentation

◆ EXPECT_FLOAT_AND_NAN_EQ

#define EXPECT_FLOAT_AND_NAN_EQ (   a,
  b 
)
Value:
{ \
if (a == a || b == b) { \
EXPECT_FLOAT_EQ(a, b); \
} \
}
static bool b
struct MyStruct a[10]

Definition at line 392 of file rect_unittest.cc.