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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/ui_test_utils.h
diff --git a/chrome/test/base/ui_test_utils.h b/chrome/test/base/ui_test_utils.h
index 9588efae95061e2daa95a611d65c93a5bdc29b7b..33d5cbb330bde3f9ef5c1a2c665d07979cc64dea 100644
--- a/chrome/test/base/ui_test_utils.h
+++ b/chrome/test/base/ui_test_utils.h
@@ -631,6 +631,18 @@ void MoveMouseToCenterAndPress(
int state,
const base::Closure& task);
+#if defined(OS_WIN)
+// Saves a snapshot of the entire screen to a file named
+// ChromiumSnapshotYYYYMMDDHHMMSS.png to |directory|, returning true on success.
+// The path to the file produced is returned in |screenshot_path| if non-NULL.
+bool SaveScreenSnapshotToDirectory(const FilePath& directory,
+ FilePath* screenshot_path);
+
+// Saves a snapshot of the entire screen as above to the current user's desktop.
+// The Chrome path provider must be registered prior to calling this function.
+bool SaveScreenSnapshotToDesktop(FilePath* screenshot_path);
+#endif
+
namespace internal {
// A utility function to send a mouse click event in a closure. It's shared by

Powered by Google App Engine
This is Rietveld 408576698