OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 // windows headers | 8 // windows headers |
9 #include <comutil.h> | 9 #include <comutil.h> |
10 #include <shellapi.h> | 10 #include <shellapi.h> |
11 #include <shlobj.h> | 11 #include <shlobj.h> |
12 #include <windows.h> | 12 #include <windows.h> |
13 #endif | 13 #endif |
14 | 14 |
15 // runtime headers | 15 // runtime headers |
16 #include <memory.h> | 16 #include <memory.h> |
17 #include <stdlib.h> | 17 #include <stdlib.h> |
18 #include <string.h> | 18 #include <string.h> |
19 | 19 |
20 #include <ostream> | 20 #include <ostream> |
21 | 21 |
22 #include "base/file_path.h" | 22 #include "base/file_path.h" |
23 #include "base/keyboard_codes.h" | |
24 #include "base/string_number_conversions.h" | 23 #include "base/string_number_conversions.h" |
25 #include "chrome/browser/net/url_request_mock_http_job.h" | 24 #include "chrome/browser/net/url_request_mock_http_job.h" |
26 #include "chrome/common/chrome_paths.h" | 25 #include "chrome/common/chrome_paths.h" |
27 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
28 #include "chrome/test/automation/browser_proxy.h" | 27 #include "chrome/test/automation/browser_proxy.h" |
29 #include "chrome/test/automation/tab_proxy.h" | 28 #include "chrome/test/automation/tab_proxy.h" |
30 #include "chrome/test/automation/window_proxy.h" | 29 #include "chrome/test/automation/window_proxy.h" |
31 #include "chrome/test/ui/npapi_test_helper.h" | 30 #include "chrome/test/ui/npapi_test_helper.h" |
32 #include "chrome/test/ui_test_utils.h" | 31 #include "chrome/test/ui_test_utils.h" |
33 | 32 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 FilePath(FILE_PATH_LITERAL("npapi/convert_point.html")))); | 370 FilePath(FILE_PATH_LITERAL("npapi/convert_point.html")))); |
372 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); | 371 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); |
373 | 372 |
374 // TODO(stuartmorgan): When the automation system supports sending clicks, | 373 // TODO(stuartmorgan): When the automation system supports sending clicks, |
375 // change the test to trigger on mouse-down rather than window focus. | 374 // change the test to trigger on mouse-down rather than window focus. |
376 ASSERT_TRUE(browser->BringToFront()); | 375 ASSERT_TRUE(browser->BringToFront()); |
377 WaitForFinish("convert_point", "1", url, kTestCompleteCookie, | 376 WaitForFinish("convert_point", "1", url, kTestCompleteCookie, |
378 kTestCompleteSuccess, action_max_timeout_ms()); | 377 kTestCompleteSuccess, action_max_timeout_ms()); |
379 } | 378 } |
380 #endif | 379 #endif |
OLD | NEW |