summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 22:21:10 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 22:21:10 +0000
commita7659318ed6c379ba782f61d8fb80e665d3a45d7 (patch)
treea6add177ad993709b6d3a3cca4f974cac1817044 /chrome/test/automation
parent8c3dc79bc13ba84f418d3c135e1bf296a3e29722 (diff)
downloadchromium_src-a7659318ed6c379ba782f61d8fb80e665d3a45d7.zip
chromium_src-a7659318ed6c379ba782f61d8fb80e665d3a45d7.tar.gz
chromium_src-a7659318ed6c379ba782f61d8fb80e665d3a45d7.tar.bz2
Added support for the URLRequestAutomationJob object which issues HTTP requests through automation to receive persistent cookies from the automation client. These cookies are passed in when the automation client notifies Chrome that a HTTP request was started.
The URLRequestAutomationJob object now informs Chrome whether an automation URL request was redirected. The ExternalTabContainer now handles the NEW_FOREGROUND_TAB and displays a popup window in response. This gets around an ASSERT. This fixes bug http://b/issue?id=2048046 Bug=2048046 Review URL: http://codereview.chromium.org/165350 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r--chrome/test/automation/automation_messages.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/test/automation/automation_messages.h b/chrome/test/automation/automation_messages.h
index f7f1762..5874c9a 100644
--- a/chrome/test/automation/automation_messages.h
+++ b/chrome/test/automation/automation_messages.h
@@ -272,6 +272,8 @@ struct AutomationURLResponse {
std::string headers;
int64 content_length;
base::Time last_modified;
+ std::string persistent_cookies;
+ std::string redirect_url;
};
// Traits for AutomationURLRequest structure to pack/unpack.
@@ -283,12 +285,16 @@ struct ParamTraits<AutomationURLResponse> {
WriteParam(m, p.headers);
WriteParam(m, p.content_length);
WriteParam(m, p.last_modified);
+ WriteParam(m, p.persistent_cookies);
+ WriteParam(m, p.redirect_url);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return ReadParam(m, iter, &p->mime_type) &&
ReadParam(m, iter, &p->headers) &&
ReadParam(m, iter, &p->content_length) &&
- ReadParam(m, iter, &p->last_modified);
+ ReadParam(m, iter, &p->last_modified) &&
+ ReadParam(m, iter, &p->persistent_cookies) &&
+ ReadParam(m, iter, &p->redirect_url);
}
static void Log(const param_type& p, std::wstring* l) {
l->append(L"(");
@@ -299,6 +305,10 @@ struct ParamTraits<AutomationURLResponse> {
LogParam(p.content_length, l);
l->append(L", ");
LogParam(p.last_modified, l);
+ l->append(L", ");
+ LogParam(p.persistent_cookies, l);
+ l->append(L", ");
+ LogParam(p.redirect_url, l);
l->append(L")");
}
};