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

Side by Side Diff: chrome/test/interactive_ui/npapi_interactive_test.cc

Issue 113722: Make automation proxy objects to ref_counted. That allows to process async no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/automation/window_proxy.cc ('k') | chrome/test/memory_test/memory_test.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 2008, Google Inc. 1 // Copyright 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 #include "net/base/net_util.h" 38 #include "net/base/net_util.h"
39 39
40 const char kTestCompleteCookie[] = "status"; 40 const char kTestCompleteCookie[] = "status";
41 const char kTestCompleteSuccess[] = "OK"; 41 const char kTestCompleteSuccess[] = "OK";
42 const int kShortWaitTimeout = 5 * 1000; 42 const int kShortWaitTimeout = 5 * 1000;
43 43
44 // Tests if a plugin executing a self deleting script in the context of 44 // Tests if a plugin executing a self deleting script in the context of
45 // a synchronous mousemove works correctly 45 // a synchronous mousemove works correctly
46 TEST_F(NPAPIVisiblePluginTester, SelfDeletePluginInvokeInSynchronousMouseMove) { 46 TEST_F(NPAPIVisiblePluginTester, SelfDeletePluginInvokeInSynchronousMouseMove) {
47 if (!UITest::in_process_renderer()) { 47 if (!UITest::in_process_renderer()) {
48 scoped_ptr<TabProxy> tab_proxy(GetActiveTab()); 48 scoped_refptr<TabProxy> tab_proxy(GetActiveTab());
49 HWND tab_window = NULL; 49 HWND tab_window = NULL;
50 tab_proxy->GetHWND(&tab_window); 50 tab_proxy->GetHWND(&tab_window);
51 51
52 EXPECT_TRUE(IsWindow(tab_window)); 52 EXPECT_TRUE(IsWindow(tab_window));
53 53
54 show_window_ = true; 54 show_window_ = true;
55 std::wstring test_case = L"execute_script_delete_in_mouse_move.html"; 55 std::wstring test_case = L"execute_script_delete_in_mouse_move.html";
56 GURL url = GetTestUrl(L"npapi", test_case); 56 GURL url = GetTestUrl(L"npapi", test_case);
57 NavigateToURL(url); 57 NavigateToURL(url);
58 58
(...skipping 10 matching lines...) Expand all
69 input_info.mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE; 69 input_info.mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE;
70 input_info.mi.dx = static_cast<long>(location_x); 70 input_info.mi.dx = static_cast<long>(location_x);
71 input_info.mi.dy = static_cast<long>(location_y); 71 input_info.mi.dy = static_cast<long>(location_y);
72 ::SendInput(1, &input_info, sizeof(INPUT)); 72 ::SendInput(1, &input_info, sizeof(INPUT));
73 73
74 WaitForFinish("execute_script_delete_in_mouse_move", "1", url, 74 WaitForFinish("execute_script_delete_in_mouse_move", "1", url,
75 kTestCompleteCookie, kTestCompleteSuccess, 75 kTestCompleteCookie, kTestCompleteSuccess,
76 kShortWaitTimeout); 76 kShortWaitTimeout);
77 } 77 }
78 } 78 }
OLDNEW
« no previous file with comments | « chrome/test/automation/window_proxy.cc ('k') | chrome/test/memory_test/memory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698