Chromium Code Reviews| Index: event_loop.h |
| diff --git a/event_loop.h b/event_loop.h |
| index 3143301c6dcaa8208bcda9bd30ce989494644acf..8712626c6128ce6c1230ff6615fa75220f4dbeb3 100644 |
| --- a/event_loop.h |
| +++ b/event_loop.h |
| @@ -23,6 +23,9 @@ class EventLoop { |
| EventLoop(); |
| ~EventLoop(); |
| + // Get the number of current-registered timeouts. Used for testing. |
| + int num_timeouts() const { return timeout_fds_.size(); } |
| + |
| // Loop until Exit() is called, waiting for FDs to become readable or |
| // timeouts to fire. |
| void Run(); |