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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 kTestCompleteSuccess, kShortWaitTimeout); | 293 kTestCompleteSuccess, kShortWaitTimeout); |
294 } | 294 } |
295 | 295 |
296 TEST_F(NPAPITester, ScheduleTimer) { | 296 TEST_F(NPAPITester, ScheduleTimer) { |
297 GURL url = GetTestUrl(L"npapi", L"schedule_timer.html"); | 297 GURL url = GetTestUrl(L"npapi", L"schedule_timer.html"); |
298 NavigateToURL(url); | 298 NavigateToURL(url); |
299 WaitForFinish("schedule_timer", "1", url, kTestCompleteCookie, | 299 WaitForFinish("schedule_timer", "1", url, kTestCompleteCookie, |
300 kTestCompleteSuccess, kShortWaitTimeout); | 300 kTestCompleteSuccess, kShortWaitTimeout); |
301 } | 301 } |
302 | 302 |
| 303 TEST_F(NPAPITester, PluginThreadAsyncCall) { |
| 304 GURL url = GetTestUrl(L"npapi", L"plugin_thread_async_call.html"); |
| 305 NavigateToURL(url); |
| 306 WaitForFinish("plugin_thread_async_call", "1", url, kTestCompleteCookie, |
| 307 kTestCompleteSuccess, kShortWaitTimeout); |
| 308 } |
| 309 |
303 // Test checking the privacy mode is on. | 310 // Test checking the privacy mode is on. |
304 TEST_F(NPAPIIncognitoTester, PrivateEnabled) { | 311 TEST_F(NPAPIIncognitoTester, PrivateEnabled) { |
305 if (UITest::in_process_renderer()) | 312 if (UITest::in_process_renderer()) |
306 return; | 313 return; |
307 | 314 |
308 GURL url = GetTestUrl(L"npapi", L"private.html?private"); | 315 GURL url = GetTestUrl(L"npapi", L"private.html?private"); |
309 NavigateToURL(url); | 316 NavigateToURL(url); |
310 WaitForFinish("private", "1", url, kTestCompleteCookie, | 317 WaitForFinish("private", "1", url, kTestCompleteCookie, |
311 kTestCompleteSuccess, kShortWaitTimeout); | 318 kTestCompleteSuccess, kShortWaitTimeout); |
312 } | 319 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 386 |
380 GURL url = GetTestUrl(L"npapi", L"npobject_released_on_destruction.html"); | 387 GURL url = GetTestUrl(L"npapi", L"npobject_released_on_destruction.html"); |
381 NavigateToURL(url); | 388 NavigateToURL(url); |
382 | 389 |
383 scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0)); | 390 scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0)); |
384 window_proxy->AppendTab(GURL(chrome::kAboutBlankURL)); | 391 window_proxy->AppendTab(GURL(chrome::kAboutBlankURL)); |
385 | 392 |
386 scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0)); | 393 scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0)); |
387 tab_proxy->Close(true); | 394 tab_proxy->Close(true); |
388 } | 395 } |
OLD | NEW |