Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Unified Diff: Source/core/html/FormDataTest.cpp

Issue 1338193002: Reduce allocation size of FormData::m_entries. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/FormData.cpp ('k') | Source/web/WebSearchableFormData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormDataTest.cpp
diff --git a/Source/core/html/FormDataTest.cpp b/Source/core/html/FormDataTest.cpp
index 50a48c389fe1701d51bb8003622b6273cb3c0087..7c240ee3cc0dbab7f7c1ddb15784a588c170648d 100644
--- a/Source/core/html/FormDataTest.cpp
+++ b/Source/core/html/FormDataTest.cpp
@@ -19,7 +19,7 @@ TEST(FormDataTest, opacityGet)
EXPECT_TRUE(result.isUSVString());
EXPECT_EQ("value1", result.getAsUSVString());
- const FormData::Entry& entry = fd->entries()[0];
+ const FormData::Entry& entry = *fd->entries()[0];
EXPECT_STREQ("name1", entry.key().data());
EXPECT_STREQ("value1", entry.data().data());
@@ -31,7 +31,7 @@ TEST(FormDataTest, opacityGet)
EXPECT_TRUE(opaqueResult.isNull());
// Internal interface should be uneffected.
- const FormData::Entry& entry2 = fd->entries()[0];
+ const FormData::Entry& entry2 = *fd->entries()[0];
EXPECT_STREQ("name1", entry2.key().data());
EXPECT_STREQ("value1", entry2.data().data());
}
« no previous file with comments | « Source/core/html/FormData.cpp ('k') | Source/web/WebSearchableFormData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698