Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Side by Side Diff: content/test/plugin/plugin_schedule_timer_test.cc

Issue 19697013: Move NPAPI test plugin to content/test/plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "webkit/plugins/npapi/test/plugin_schedule_timer_test.h" 5 #include "content/test/plugin/plugin_schedule_timer_test.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "webkit/plugins/npapi/test/plugin_client.h" 8 #include "content/test/plugin/plugin_client.h"
9 9
10 using base::Time; 10 using base::Time;
11 11
12 namespace NPAPIClient { 12 namespace NPAPIClient {
13 13
14 // The times below are accurate but they are not tested against because it 14 // The times below are accurate but they are not tested against because it
15 // might make the test flakey. 15 // might make the test flakey.
16 ScheduleTimerTest::Event 16 ScheduleTimerTest::Event
17 ScheduleTimerTest::schedule_[ScheduleTimerTest::kNumEvents] = { 17 ScheduleTimerTest::schedule_[ScheduleTimerTest::kNumEvents] = {
18 { 0, -1, 0, 100, false, -1 }, // schedule 0 100ms no-repeat 18 { 0, -1, 0, 100, false, -1 }, // schedule 0 100ms no-repeat
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 110
111 // Schedule timer if present. 111 // Schedule timer if present.
112 if (event.scheduled_index >= 0) { 112 if (event.scheduled_index >= 0) {
113 timer_ids_[event.scheduled_index] = HostFunctions()->scheduletimer( 113 timer_ids_[event.scheduled_index] = HostFunctions()->scheduletimer(
114 id(), event.scheduled_interval, event.schedule_repeated, OnTimerHelper); 114 id(), event.scheduled_interval, event.schedule_repeated, OnTimerHelper);
115 } 115 }
116 } 116 }
117 117
118 } // namespace NPAPIClient 118 } // namespace NPAPIClient
OLDNEW
« no previous file with comments | « content/test/plugin/plugin_schedule_timer_test.h ('k') | content/test/plugin/plugin_setup_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698