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

Public Member Functions

 TestStackedStackResource (int *ptr)
 
 ~TestStackedStackResource ()
 
int value () 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 51 of file allocation_test.cc.

Constructor & Destructor Documentation

◆ TestStackedStackResource()

dart::TestStackedStackResource::TestStackedStackResource ( int ptr)
inlineexplicit

Definition at line 53 of file allocation_test.cc.

54 : StackResource(Thread::Current()), ptr_(ptr) {
55 EXPECT_EQ(3, *ptr_);
56 *ptr_ = 4;
57 }
StackResource(ThreadState *thread)
Definition: allocation.h:25
static Thread * Current()
Definition: thread.h:362

◆ ~TestStackedStackResource()

dart::TestStackedStackResource::~TestStackedStackResource ( )
inline

Definition at line 59 of file allocation_test.cc.

59 {
60 EXPECT_EQ(5, *ptr_);
61 *ptr_ = 6;
62 }

Member Function Documentation

◆ value()

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

Definition at line 64 of file allocation_test.cc.

64{ return *ptr_; }

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