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

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

Issue 1073003: Added a test for pepper3d. It ensures that we can successfully load a pepper ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
« no previous file with comments | « chrome/test/ui/npapi_test_helper.cc ('k') | chrome/test/ui/pepper_uitest.cc » ('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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 // windows headers 6 // windows headers
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 #include <comutil.h> 10 #include <comutil.h>
(...skipping 10 matching lines...) Expand all
21 #include "base/keyboard_codes.h" 21 #include "base/keyboard_codes.h"
22 #include "chrome/browser/net/url_request_mock_http_job.h" 22 #include "chrome/browser/net/url_request_mock_http_job.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
25 #include "chrome/test/automation/browser_proxy.h" 25 #include "chrome/test/automation/browser_proxy.h"
26 #include "chrome/test/automation/tab_proxy.h" 26 #include "chrome/test/automation/tab_proxy.h"
27 #include "chrome/test/automation/window_proxy.h" 27 #include "chrome/test/automation/window_proxy.h"
28 #include "chrome/test/ui/npapi_test_helper.h" 28 #include "chrome/test/ui/npapi_test_helper.h"
29 #include "net/base/net_util.h" 29 #include "net/base/net_util.h"
30 30
31 const char kTestCompleteCookie[] = "status"; 31 using npapi_test::kTestCompleteCookie;
32 const char kTestCompleteSuccess[] = "OK"; 32 using npapi_test::kTestCompleteSuccess;
33 const int kLongWaitTimeout = 30 * 1000; 33 using npapi_test::kLongWaitTimeout;
34 const int kShortWaitTimeout = 5 * 1000; 34 using npapi_test::kShortWaitTimeout;
35 35
36 // Test passing arguments to a plugin. 36 // Test passing arguments to a plugin.
37 TEST_F(NPAPITester, Arguments) { 37 TEST_F(NPAPITester, Arguments) {
38 std::wstring test_case = L"arguments.html"; 38 std::wstring test_case = L"arguments.html";
39 GURL url = GetTestUrl(L"npapi", test_case); 39 GURL url = GetTestUrl(L"npapi", test_case);
40 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); 40 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
41 WaitForFinish("arguments", "1", url, kTestCompleteCookie, 41 WaitForFinish("arguments", "1", url, kTestCompleteCookie,
42 kTestCompleteSuccess, kShortWaitTimeout); 42 kTestCompleteSuccess, kShortWaitTimeout);
43 } 43 }
44 44
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); 421 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
422 422
423 // TODO(stuartmorgan): When the automation system supports sending clicks, 423 // TODO(stuartmorgan): When the automation system supports sending clicks,
424 // change the test to trigger on mouse-down rather than window focus. 424 // change the test to trigger on mouse-down rather than window focus.
425 ASSERT_TRUE(browser->BringToFront()); 425 ASSERT_TRUE(browser->BringToFront());
426 WaitForFinish("convert_point", "1", url, kTestCompleteCookie, 426 WaitForFinish("convert_point", "1", url, kTestCompleteCookie,
427 kTestCompleteSuccess, kShortWaitTimeout); 427 kTestCompleteSuccess, kShortWaitTimeout);
428 } 428 }
429 #endif 429 #endif
430 430
OLDNEW
« no previous file with comments | « chrome/test/ui/npapi_test_helper.cc ('k') | chrome/test/ui/pepper_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698