summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_tests.gypi
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-04 00:27:01 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-04 00:27:01 +0000
commit7dad3d5f3d40d86158ed96536fd681701b43611d (patch)
treeec2dd5d5a9a836eb1244d6b9e1d36a6518a15f17 /chrome/chrome_tests.gypi
parentf661899570cea4abb593ea7d6d8143afe0c7f8b8 (diff)
downloadchromium_src-7dad3d5f3d40d86158ed96536fd681701b43611d.zip
chromium_src-7dad3d5f3d40d86158ed96536fd681701b43611d.tar.gz
chromium_src-7dad3d5f3d40d86158ed96536fd681701b43611d.tar.bz2
Test cookie prompting.
Adds automation plumbing to support changing the content settings. This change also fixes WaitForNavigation to watch for the LOAD_STOP event instead of the NAV_ENTRY_COMMITTED event. This better matches the intent (I think) of the automation interface, and it also matches the similar function defined in ui_test_utils (used by browser tests). This also better matches the NavigationNotificationObserver, which seems desirable given the implementation of AutomationProvider::WaitForNavigation. It turns out that only one UI test was using WaitForNavigation, and I confirmed that it still functions properly. This change also modifies the NavigationNotificationObserver to allow it to watch for the current page load to complete. Normally, it waits for the first LOAD_START or NAV_ENTRY_COMMITTED event to switch into the mode where it watches for LOAD_STOP. However, that makes it not so useful for WaitForNavigation, which is intended to be called after triggering the start of a new navigation. This change also makes it so that the cookie prompt supports the automation message box 'OK' and 'Cancel' buttons, so that we can remotely press those buttons. Leveraging all of these changes enables some basic cookie prompting tests to be written. I had to modify browser_frame_win.cc to ensure that BrowserList::SetLastActive is called even while running under remote desktop. R=phajdan.jr@chromium.org BUG=37182 TEST=cookie_modal_dialog_uitest.cc Review URL: http://codereview.chromium.org/661102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_tests.gypi')
-rw-r--r--chrome/chrome_tests.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index 4d8d675..7b7c95c 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -271,6 +271,7 @@
'app/chrome_main_uitest.cc',
'browser/browser_encoding_uitest.cc',
'browser/browser_uitest.cc',
+ 'browser/cookie_modal_dialog_uitest.cc',
'browser/dom_ui/new_tab_ui_uitest.cc',
'browser/download/download_uitest.cc',
'browser/download/save_page_uitest.cc',