From 5bcdb31304d676b38ce605180b7d8816e9a8b745 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Wed, 7 Jan 2009 21:43:20 +0000 Subject: Add a UI test to make sure we sanitize the filename of files saved using the "Save page as..." menu item. This involves adding a new automation provider method for disabling the dialog prompting for a filename. Review URL: http://codereview.chromium.org/16555 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7683 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/automation/automation_proxy.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/test/automation/automation_proxy.cc') diff --git a/chrome/test/automation/automation_proxy.cc b/chrome/test/automation/automation_proxy.cc index 87ed3680..59303b6 100644 --- a/chrome/test/automation/automation_proxy.cc +++ b/chrome/test/automation/automation_proxy.cc @@ -241,6 +241,10 @@ void AutomationProxy::SignalNewTabUITab(int load_time) { ::SetEvent(new_tab_ui_load_complete_); } +bool AutomationProxy::SavePackageShouldPromptUser(bool should_prompt) { + return Send(new AutomationMsg_SavePackageShouldPromptUser(0, should_prompt)); +} + bool AutomationProxy::GetBrowserWindowCount(int* num_windows) { if (!num_windows) { NOTREACHED(); -- cgit v1.1