Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TestStackResource Class Reference
Inheritance diagram for dart::TestStackResource:
dart::StackResource

Public Member Functions

 TestStackResource (int *ptr)
 
 ~TestStackResource ()
 
int value () const
 
virtual int GetId () const
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 31 of file allocation_test.cc.

Constructor & Destructor Documentation

◆ TestStackResource()

dart::TestStackResource::TestStackResource ( int ptr)
inlineexplicit

Definition at line 33 of file allocation_test.cc.

34 : StackResource(Thread::Current()), ptr_(ptr) {
35 EXPECT_EQ(1, *ptr_);
36 *ptr_ = 2;
37 }
StackResource(ThreadState *thread)
Definition: allocation.h:25
static Thread * Current()
Definition: thread.h:362

◆ ~TestStackResource()

dart::TestStackResource::~TestStackResource ( )
inline

Definition at line 39 of file allocation_test.cc.

39 {
40 EXPECT_EQ(6, *ptr_);
41 *ptr_ = 7;
42 }

Member Function Documentation

◆ GetId()

virtual int dart::TestStackResource::GetId ( ) const
inlinevirtual

Definition at line 45 of file allocation_test.cc.

45{ return 3; }

◆ value()

int dart::TestStackResource::value ( ) const
inline

Definition at line 44 of file allocation_test.cc.

44{ return *ptr_; }

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