summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 23:29:13 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 23:29:13 +0000
commitb4cdb69c9e1fc9c83b4fdd0bcab32d25debea70c (patch)
tree6764a6fd6b265369f1f650e5e5e6eeefd715094f /chrome/test/automation
parent2ec13a4db250c74dd94bc5b1e8e007cf388b7a16 (diff)
downloadchromium_src-b4cdb69c9e1fc9c83b4fdd0bcab32d25debea70c.zip
chromium_src-b4cdb69c9e1fc9c83b4fdd0bcab32d25debea70c.tar.gz
chromium_src-b4cdb69c9e1fc9c83b4fdd0bcab32d25debea70c.tar.bz2
Explicitly including the redirect status with the AutomationURLResponse info.
Before we were always defaulting to 301. TEST=run automation tests. BUG=none Review URL: http://codereview.chromium.org/178041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24962 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r--chrome/test/automation/automation_messages.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/test/automation/automation_messages.h b/chrome/test/automation/automation_messages.h
index bc578d7..01d3a3f 100644
--- a/chrome/test/automation/automation_messages.h
+++ b/chrome/test/automation/automation_messages.h
@@ -274,9 +274,10 @@ struct AutomationURLResponse {
base::Time last_modified;
std::string persistent_cookies;
std::string redirect_url;
+ int redirect_status;
};
-// Traits for AutomationURLRequest structure to pack/unpack.
+// Traits for AutomationURLResponse structure to pack/unpack.
template <>
struct ParamTraits<AutomationURLResponse> {
typedef AutomationURLResponse param_type;
@@ -287,6 +288,7 @@ struct ParamTraits<AutomationURLResponse> {
WriteParam(m, p.last_modified);
WriteParam(m, p.persistent_cookies);
WriteParam(m, p.redirect_url);
+ WriteParam(m, p.redirect_status);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return ReadParam(m, iter, &p->mime_type) &&
@@ -294,7 +296,8 @@ struct ParamTraits<AutomationURLResponse> {
ReadParam(m, iter, &p->content_length) &&
ReadParam(m, iter, &p->last_modified) &&
ReadParam(m, iter, &p->persistent_cookies) &&
- ReadParam(m, iter, &p->redirect_url);
+ ReadParam(m, iter, &p->redirect_url) &&
+ ReadParam(m, iter, &p->redirect_status);
}
static void Log(const param_type& p, std::wstring* l) {
l->append(L"(");
@@ -309,6 +312,8 @@ struct ParamTraits<AutomationURLResponse> {
LogParam(p.persistent_cookies, l);
l->append(L", ");
LogParam(p.redirect_url, l);
+ l->append(L", ");
+ LogParam(p.redirect_status, l);
l->append(L")");
}
};