| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_SCHEDULE_TIMER_TEST_H | 5 #ifndef WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_SCHEDULE_TIMER_TEST_H |
| 6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_SCHEDULE_TIMER_TEST_H | 6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_SCHEDULE_TIMER_TEST_H |
| 7 | 7 |
| 8 #include "base/time.h" | 8 #include "base/time.h" |
| 9 #include "webkit/plugins/npapi/test/plugin_test.h" | 9 #include "webkit/plugins/npapi/test/plugin_test.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int num_received_events_; | 49 int num_received_events_; |
| 50 | 50 |
| 51 // Set of events that have been received (by index). | 51 // Set of events that have been received (by index). |
| 52 bool received_events_[kNumEvents]; | 52 bool received_events_[kNumEvents]; |
| 53 | 53 |
| 54 // Time of initial event. | 54 // Time of initial event. |
| 55 base::Time start_time_; | 55 base::Time start_time_; |
| 56 | 56 |
| 57 // Returns index of matching unreceived event or -1 if not found. | 57 // Returns index of matching unreceived event or -1 if not found. |
| 58 int FindUnreceivedEvent(int time, uint32 timer_id); | 58 int FindUnreceivedEvent(int time, uint32 timer_id); |
| 59 void HandleEvent(int event_index); | 59 void HandleEventIndex(int event_index); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace NPAPIClient | 62 } // namespace NPAPIClient |
| 63 | 63 |
| 64 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_SCHEDULE_TIMER_TEST_H | 64 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_SCHEDULE_TIMER_TEST_H |
| OLD | NEW |