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 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ | 5 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ |
6 #define CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ | 6 #define CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 #include <string> | 10 #include <string> |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 338 |
339 // Returns the profile path to be used for IE. This varies as per version. | 339 // Returns the profile path to be used for IE. This varies as per version. |
340 FilePath GetProfilePathForIE(); | 340 FilePath GetProfilePathForIE(); |
341 | 341 |
342 // Returns the version of the exe passed in. | 342 // Returns the version of the exe passed in. |
343 std::wstring GetExeVersion(const std::wstring& exe_path); | 343 std::wstring GetExeVersion(const std::wstring& exe_path); |
344 | 344 |
345 // Returns the version of Internet Explorer on the machine. | 345 // Returns the version of Internet Explorer on the machine. |
346 IEVersion GetInstalledIEVersion(); | 346 IEVersion GetInstalledIEVersion(); |
347 | 347 |
| 348 // Posts a delayed task to send an extended keystroke |repeat| times with an |
| 349 // optional modifier via SendInput. Following this, the enter key is sent. |
| 350 void DelaySendExtendedKeysEnter(TimedMsgLoop* loop, int delay, char c, |
| 351 int repeat, simulate_input::Modifier mod); |
| 352 |
348 // A convenience class to close all open IE windows at the end | 353 // A convenience class to close all open IE windows at the end |
349 // of a scope. It's more convenient to do it this way than to | 354 // of a scope. It's more convenient to do it this way than to |
350 // explicitly call chrome_frame_test::CloseAllIEWindows at the | 355 // explicitly call chrome_frame_test::CloseAllIEWindows at the |
351 // end of a test since part of the test's cleanup code may be | 356 // end of a test since part of the test's cleanup code may be |
352 // in object destructors that would run after CloseAllIEWindows | 357 // in object destructors that would run after CloseAllIEWindows |
353 // would get called. | 358 // would get called. |
354 // Ideally all IE windows should be closed when this happens so | 359 // Ideally all IE windows should be closed when this happens so |
355 // if the test ran normally, we should not have any windows to | 360 // if the test ran normally, we should not have any windows to |
356 // close at this point. | 361 // close at this point. |
357 class CloseIeAtEndOfScope { | 362 class CloseIeAtEndOfScope { |
(...skipping 16 matching lines...) Expand all Loading... |
374 class ComStackObjectWithUninitialize : public CComObjectStackEx<Base> { | 379 class ComStackObjectWithUninitialize : public CComObjectStackEx<Base> { |
375 public: | 380 public: |
376 virtual ~ComStackObjectWithUninitialize() { | 381 virtual ~ComStackObjectWithUninitialize() { |
377 Base::Uninitialize(); | 382 Base::Uninitialize(); |
378 } | 383 } |
379 }; | 384 }; |
380 | 385 |
381 } // namespace chrome_frame_test | 386 } // namespace chrome_frame_test |
382 | 387 |
383 #endif // CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ | 388 #endif // CHROME_FRAME_TEST_CHROME_FRAME_TEST_UTILS_H_ |
OLD | NEW |