summaryrefslogtreecommitdiffstats
path: root/webkit/glue/glue_serialize_unittest.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-24 00:27:23 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-24 00:27:23 +0000
commitf460ef7d1e7e9421be4e7f868b2629fc64060ade (patch)
treefb86d8ea685f04a2bd84307a17bba172a2e07f1f /webkit/glue/glue_serialize_unittest.cc
parent0a93350fc146cd0ecf360b704f4934817e9c6be0 (diff)
downloadchromium_src-f460ef7d1e7e9421be4e7f868b2629fc64060ade.zip
chromium_src-f460ef7d1e7e9421be4e7f868b2629fc64060ade.tar.gz
chromium_src-f460ef7d1e7e9421be4e7f868b2629fc64060ade.tar.bz2
Chrome side of webkit merge to r40164.
One file added between r40124 and r40164, however, all the worker files didn't seem to be in the xcode project so I added all of them. Review URL: http://codereview.chromium.org/18733 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/glue_serialize_unittest.cc')
-rw-r--r--webkit/glue/glue_serialize_unittest.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/webkit/glue/glue_serialize_unittest.cc b/webkit/glue/glue_serialize_unittest.cc
index 15664ea..fb48e68 100644
--- a/webkit/glue/glue_serialize_unittest.cc
+++ b/webkit/glue/glue_serialize_unittest.cc
@@ -91,7 +91,6 @@ class GlueSerializeTest : public testing::Test {
item->setScrollPoint(IntPoint(42, -42));
item->setIsTargetItem(true);
item->setVisitCount(42*42);
- item->setRSSFeedReferrer("rssFeedReferrer");
Vector<String> document_state;
document_state.append("state1");
@@ -104,11 +103,15 @@ class GlueSerializeTest : public testing::Test {
if (with_form_data) {
dummy_request.setHTTPBody(MakeFormData());
dummy_request.setHTTPContentType("formContentType");
- dummy_request.setHTTPReferrer("formReferrer");
+ dummy_request.setHTTPReferrer("referrer");
dummy_request.setHTTPMethod("POST");
}
item->setFormInfoFromRequest(dummy_request);
+ // Setting the FormInfo causes the referrer to be set, so we set the
+ // referrer after setting the form info.
+ item->setReferrer("referrer");
+
// Children
if (pregnant)
item->addChildItem(MakeHistoryItem(false, false));
@@ -128,14 +131,13 @@ class GlueSerializeTest : public testing::Test {
EXPECT_EQ(a->scrollPoint(), b->scrollPoint());
EXPECT_EQ(a->isTargetItem(), b->isTargetItem());
EXPECT_EQ(a->visitCount(), b->visitCount());
- EXPECT_EQ(a->rssFeedReferrer(), b->rssFeedReferrer());
+ EXPECT_EQ(a->referrer(), b->referrer());
EXPECT_EQ(a->documentState(), b->documentState());
// Form Data
EXPECT_EQ(a->formData() != NULL, b->formData() != NULL);
if (a->formData() && b->formData())
EXPECT_EQ(*a->formData(), *b->formData());
- EXPECT_EQ(a->formReferrer(), b->formReferrer());
EXPECT_EQ(a->formContentType(), b->formContentType());
// Children