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

Side by Side Diff: chrome/test/base/ui_test_utils.h

Issue 10007043: Attempt to fix ChromeFrameTestWithWebServer tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added retry logic for WidgetModeIE_Version. Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TEST_BASE_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_
6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 views::View* view, 624 views::View* view,
625 #elif defined(TOOLKIT_GTK) 625 #elif defined(TOOLKIT_GTK)
626 GtkWidget* widget, 626 GtkWidget* widget,
627 #elif defined(OS_MACOSX) 627 #elif defined(OS_MACOSX)
628 NSView* view, 628 NSView* view,
629 #endif 629 #endif
630 ui_controls::MouseButton button, 630 ui_controls::MouseButton button,
631 int state, 631 int state,
632 const base::Closure& task); 632 const base::Closure& task);
633 633
634 #if defined(OS_WIN)
635 // Saves a snapshot of the entire screen to a file named
636 // ChromiumSnapshotYYYYMMDDHHMMSS.png to |directory|, returning true on success.
637 // The path to the file produced is returned in |screenshot_path| if non-NULL.
638 bool SaveScreenSnapshotToDirectory(const FilePath& directory,
639 FilePath* screenshot_path);
640
641 // Saves a snapshot of the entire screen as above to the current user's desktop.
642 // The Chrome path provider must be registered prior to calling this function.
643 bool SaveScreenSnapshotToDesktop(FilePath* screenshot_path);
644 #endif
645
634 namespace internal { 646 namespace internal {
635 647
636 // A utility function to send a mouse click event in a closure. It's shared by 648 // A utility function to send a mouse click event in a closure. It's shared by
637 // ui_controls_linux.cc and ui_controls_mac.cc 649 // ui_controls_linux.cc and ui_controls_mac.cc
638 void ClickTask(ui_controls::MouseButton button, 650 void ClickTask(ui_controls::MouseButton button,
639 int state, 651 int state,
640 const base::Closure& followup); 652 const base::Closure& followup);
641 653
642 } // namespace internal 654 } // namespace internal
643 655
644 } // namespace ui_test_utils 656 } // namespace ui_test_utils
645 657
646 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 658 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698