Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
dart::PortTestMessageHandler Class Reference
Inheritance diagram for dart::PortTestMessageHandler:
dart::MessageHandler

Public Member Functions

 PortTestMessageHandler ()
 
void MessageNotify (Message::Priority priority)
 
MessageStatus HandleMessage (std::unique_ptr< Message > message)
 
- Public Member Functions inherited from dart::MessageHandler
virtual ~MessageHandler ()
 
virtual const char * name () const
 
bool Run (ThreadPool *pool, StartCallback start_callback, EndCallback end_callback, CallbackData data)
 
MessageStatus HandleNextMessage ()
 
MessageStatus HandleOOBMessages ()
 
MessageStatus PauseAndHandleAllMessages (int64_t timeout_millis)
 
bool HasOOBMessages ()
 
bool HasMessages ()
 
virtual bool KeepAliveLocked ()
 
void RequestDeletion ()
 
bool paused () const
 
void increment_paused ()
 
void decrement_paused ()
 
void DebugDump ()
 
bool should_pause_on_start () const
 
void set_should_pause_on_start (bool should_pause_on_start)
 
bool is_paused_on_start () const
 
bool should_pause_on_exit () const
 
void set_should_pause_on_exit (bool should_pause_on_exit)
 
bool is_paused_on_exit () const
 
int64_t paused_timestamp () const
 
bool ShouldPauseOnStart (MessageStatus status) const
 
bool ShouldPauseOnExit (MessageStatus status) const
 
void PausedOnStart (bool paused)
 
void PausedOnExit (bool paused)
 

Public Attributes

int notify_count
 

Additional Inherited Members

- Public Types inherited from dart::MessageHandler
enum  MessageStatus { kOK , kError , kShutdown }
 
typedef uword CallbackData
 
typedef MessageStatus(* StartCallback) (CallbackData data)
 
typedef void(* EndCallback) (CallbackData data)
 
- Static Public Member Functions inherited from dart::MessageHandler
static const char * MessageStatusString (MessageStatus status)
 
- Protected Member Functions inherited from dart::MessageHandler
 MessageHandler ()
 
virtual bool IsCurrentIsolate () const
 
virtual Isolateisolate () const
 
void PostMessage (std::unique_ptr< Message > message, bool before_events=false)
 
void ClosePort (Dart_Port port)
 
void CloseAllPorts ()
 
virtual void MessageNotify (Message::Priority priority)
 
virtual MessageStatus HandleMessage (std::unique_ptr< Message > message)=0
 
virtual void NotifyPauseOnStart ()
 
virtual void NotifyPauseOnExit ()
 
Threadthread () const
 

Detailed Description

Definition at line 14 of file port_test.cc.

Constructor & Destructor Documentation

◆ PortTestMessageHandler()

dart::PortTestMessageHandler::PortTestMessageHandler ( )
inline

Definition at line 16 of file port_test.cc.

Member Function Documentation

◆ HandleMessage()

MessageStatus dart::PortTestMessageHandler::HandleMessage ( std::unique_ptr< Message message)
inlinevirtual

Implements dart::MessageHandler.

Definition at line 20 of file port_test.cc.

20{ return kOK; }

◆ MessageNotify()

void dart::PortTestMessageHandler::MessageNotify ( Message::Priority  priority)
inlinevirtual

Reimplemented from dart::MessageHandler.

Definition at line 18 of file port_test.cc.

18{ notify_count++; }

Member Data Documentation

◆ notify_count

int dart::PortTestMessageHandler::notify_count

Definition at line 22 of file port_test.cc.


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