Definition at line 33 of file message_handler_test.cc.
◆ TestMessageHandler()
dart::TestMessageHandler::TestMessageHandler |
( |
| ) |
|
|
inline |
Definition at line 35 of file message_handler_test.cc.
36 : port_buffer_(nullptr),
37 port_buffer_size_(0),
38 notify_count_(0),
39 message_count_(0),
40 start_called_(false),
41 end_called_(false),
42 results_(nullptr),
43 monitor_() {}
◆ ~TestMessageHandler()
dart::TestMessageHandler::~TestMessageHandler |
( |
| ) |
|
|
inline |
Definition at line 45 of file message_handler_test.cc.
45 {
47 delete[] port_buffer_;
48 }
static void ClosePorts(MessageHandler *handler)
◆ End()
void dart::TestMessageHandler::End |
( |
| ) |
|
|
inline |
Definition at line 76 of file message_handler_test.cc.
76 {
77 MonitorLocker ml(&monitor_);
78 end_called_ = true;
79 AddPortToBuffer(-2);
80 ml.Notify();
81 }
◆ end_called()
bool dart::TestMessageHandler::end_called |
( |
| ) |
const |
|
inline |
◆ HandleMessage()
Implements dart::MessageHandler.
Definition at line 56 of file message_handler_test.cc.
56 {
57
58
59 MonitorLocker ml(&monitor_);
60 AddPortToBuffer(
message->dest_port());
61 message_count_++;
63 if (results_ != nullptr) {
64 status = results_[0];
65 results_++;
66 }
67 ml.Notify();
68 return status;
69 }
◆ message_count()
int dart::TestMessageHandler::message_count |
( |
| ) |
const |
|
inline |
◆ MessageNotify()
◆ monitor()
Monitor * dart::TestMessageHandler::monitor |
( |
| ) |
|
|
inline |
◆ notify_count()
int dart::TestMessageHandler::notify_count |
( |
| ) |
const |
|
inline |
◆ port_buffer()
Dart_Port * dart::TestMessageHandler::port_buffer |
( |
| ) |
const |
|
inline |
◆ set_results()
void dart::TestMessageHandler::set_results |
( |
MessageStatus * |
results | ) |
|
|
inline |
◆ Start()
◆ start_called()
bool dart::TestMessageHandler::start_called |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: