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

Side by Side Diff: chrome/test/ui/npapi_uitest.cc

Issue 329013: Implemented NPN_ScheduleTimer and NPN_UnscheduleTimer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/test/data/npapi/schedule_timer.html ('k') | third_party/npapi/bindings/npapi.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // windows headers 5 // windows headers
6 #include <windows.h> 6 #include <windows.h>
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 #include <comutil.h> 9 #include <comutil.h>
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 TEST_F(NPAPITester, PrivateDisabled) { 284 TEST_F(NPAPITester, PrivateDisabled) {
285 if (UITest::in_process_renderer()) 285 if (UITest::in_process_renderer())
286 return; 286 return;
287 287
288 GURL url = GetTestUrl(L"npapi", L"private.html"); 288 GURL url = GetTestUrl(L"npapi", L"private.html");
289 NavigateToURL(url); 289 NavigateToURL(url);
290 WaitForFinish("private", "1", url, kTestCompleteCookie, 290 WaitForFinish("private", "1", url, kTestCompleteCookie,
291 kTestCompleteSuccess, kShortWaitTimeout); 291 kTestCompleteSuccess, kShortWaitTimeout);
292 } 292 }
293 293
294 TEST_F(NPAPITester, ScheduleTimer) {
295 GURL url = GetTestUrl(L"npapi", L"schedule_timer.html");
296 NavigateToURL(url);
297 WaitForFinish("schedule_timer", "1", url, kTestCompleteCookie,
298 kTestCompleteSuccess, kShortWaitTimeout);
299 }
300
294 // Test checking the privacy mode is on. 301 // Test checking the privacy mode is on.
295 TEST_F(NPAPIIncognitoTester, PrivateEnabled) { 302 TEST_F(NPAPIIncognitoTester, PrivateEnabled) {
296 if (UITest::in_process_renderer()) 303 if (UITest::in_process_renderer())
297 return; 304 return;
298 305
299 GURL url = GetTestUrl(L"npapi", L"private.html?private"); 306 GURL url = GetTestUrl(L"npapi", L"private.html?private");
300 NavigateToURL(url); 307 NavigateToURL(url);
301 WaitForFinish("private", "1", url, kTestCompleteCookie, 308 WaitForFinish("private", "1", url, kTestCompleteCookie,
302 kTestCompleteSuccess, kShortWaitTimeout); 309 kTestCompleteSuccess, kShortWaitTimeout);
303 } 310 }
(...skipping 27 matching lines...) Expand all
331 TEST_F(NPAPITester, EnsureScriptingWorksInDestroy) { 338 TEST_F(NPAPITester, EnsureScriptingWorksInDestroy) {
332 if (UITest::in_process_renderer()) 339 if (UITest::in_process_renderer())
333 return; 340 return;
334 341
335 GURL url = GetTestUrl(L"npapi", L"ensure_scripting_works_in_destroy.html"); 342 GURL url = GetTestUrl(L"npapi", L"ensure_scripting_works_in_destroy.html");
336 NavigateToURL(url); 343 NavigateToURL(url);
337 WaitForFinish("ensure_scripting_works_in_destroy", "1", url, 344 WaitForFinish("ensure_scripting_works_in_destroy", "1", url,
338 kTestCompleteCookie, kTestCompleteSuccess, 345 kTestCompleteCookie, kTestCompleteSuccess,
339 kShortWaitTimeout); 346 kShortWaitTimeout);
340 } 347 }
OLDNEW
« no previous file with comments | « chrome/test/data/npapi/schedule_timer.html ('k') | third_party/npapi/bindings/npapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698