OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "webkit/plugins/npapi/test/plugin_schedule_timer_test.h" | 5 #include "webkit/glue/plugins/test/plugin_schedule_timer_test.h" |
6 #include "webkit/plugins/npapi/test/plugin_client.h" | 6 #include "webkit/glue/plugins/test/plugin_client.h" |
7 | 7 |
8 using base::Time; | 8 using base::Time; |
9 | 9 |
10 namespace NPAPIClient { | 10 namespace NPAPIClient { |
11 | 11 |
12 // The times below are accurate but they are not tested against because it | 12 // The times below are accurate but they are not tested against because it |
13 // might make the test flakey. | 13 // might make the test flakey. |
14 ScheduleTimerTest::Event | 14 ScheduleTimerTest::Event |
15 ScheduleTimerTest::schedule_[ScheduleTimerTest::kNumEvents] = { | 15 ScheduleTimerTest::schedule_[ScheduleTimerTest::kNumEvents] = { |
16 { 0, -1, 0, 100, false, -1 }, // schedule 0 100ms no-repeat | 16 { 0, -1, 0, 100, false, -1 }, // schedule 0 100ms no-repeat |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 | 108 |
109 // Schedule timer if present. | 109 // Schedule timer if present. |
110 if (event.scheduled_index >= 0) { | 110 if (event.scheduled_index >= 0) { |
111 timer_ids_[event.scheduled_index] = HostFunctions()->scheduletimer( | 111 timer_ids_[event.scheduled_index] = HostFunctions()->scheduletimer( |
112 id(), event.scheduled_interval, event.schedule_repeated, OnTimerHelper); | 112 id(), event.scheduled_interval, event.schedule_repeated, OnTimerHelper); |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 } // namespace NPAPIClient | 116 } // namespace NPAPIClient |
OLD | NEW |