Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart::ObjectIdRingTestHelper Class Reference

Static Public Member Functions

static void SetCapacityAndMaxSerial (ObjectIdRing *ring, int32_t capacity, int32_t max_serial)
 
static void ExpectIdIsValid (ObjectIdRing *ring, intptr_t id)
 
static void ExpectIdIsInvalid (ObjectIdRing *ring, intptr_t id)
 
static void ExpectIndexId (ObjectIdRing *ring, intptr_t index, intptr_t id)
 
static void ExpectInvalidIndex (ObjectIdRing *ring, intptr_t index)
 
static ObjectPtr MakeString (const char *s)
 
static void ExpectString (ObjectPtr obj, const char *s)
 

Detailed Description

Definition at line 17 of file object_id_ring_test.cc.

Member Function Documentation

◆ ExpectIdIsInvalid()

static void dart::ObjectIdRingTestHelper::ExpectIdIsInvalid ( ObjectIdRing ring,
intptr_t  id 
)
inlinestatic

Definition at line 29 of file object_id_ring_test.cc.

29 {
30 EXPECT(!ring->IsValidId(id));
31 }
#define EXPECT(type, expectedAlignment, expectedSize)

◆ ExpectIdIsValid()

static void dart::ObjectIdRingTestHelper::ExpectIdIsValid ( ObjectIdRing ring,
intptr_t  id 
)
inlinestatic

Definition at line 25 of file object_id_ring_test.cc.

25 {
26 EXPECT(ring->IsValidId(id));
27 }

◆ ExpectIndexId()

static void dart::ObjectIdRingTestHelper::ExpectIndexId ( ObjectIdRing ring,
intptr_t  index,
intptr_t  id 
)
inlinestatic

Definition at line 33 of file object_id_ring_test.cc.

33 {
34 EXPECT_EQ(id, ring->IdOfIndex(index));
35 }

◆ ExpectInvalidIndex()

static void dart::ObjectIdRingTestHelper::ExpectInvalidIndex ( ObjectIdRing ring,
intptr_t  index 
)
inlinestatic

Definition at line 37 of file object_id_ring_test.cc.

37 {
38 EXPECT_EQ(-1, ring->IdOfIndex(index));
39 }

◆ ExpectString()

static void dart::ObjectIdRingTestHelper::ExpectString ( ObjectPtr  obj,
const char *  s 
)
inlinestatic

Definition at line 45 of file object_id_ring_test.cc.

45 {
46 String& str = String::Handle();
47 str ^= obj;
48 EXPECT(str.Equals(s));
49 }
static Object & Handle()
Definition: object.h:407
struct MyStruct s

◆ MakeString()

static ObjectPtr dart::ObjectIdRingTestHelper::MakeString ( const char *  s)
inlinestatic

Definition at line 41 of file object_id_ring_test.cc.

41 {
43 }
static StringPtr New(Thread *thread, const char *cstr)
Definition: symbols.h:723
static Thread * Current()
Definition: thread.h:362

◆ SetCapacityAndMaxSerial()

static void dart::ObjectIdRingTestHelper::SetCapacityAndMaxSerial ( ObjectIdRing ring,
int32_t  capacity,
int32_t  max_serial 
)
inlinestatic

Definition at line 19 of file object_id_ring_test.cc.

21 {
22 ring->SetCapacityAndMaxSerial(capacity, max_serial);
23 }

The documentation for this class was generated from the following file: