OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |