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

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

Issue 1325893005: Rename DOMFormData to FormData. (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/FormDataList.cpp ('k') | Source/core/loader/BeaconLoader.h » ('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/DOMFormDataTest.cpp b/Source/core/html/FormDataTest.cpp
similarity index 83%
rename from Source/core/html/DOMFormDataTest.cpp
rename to Source/core/html/FormDataTest.cpp
index 09d2107e65a606015d9b9b7e6740b309a76e2947..936878572aef1e55515d95d0a171708a1cb09f34 100644
--- a/Source/core/html/DOMFormDataTest.cpp
+++ b/Source/core/html/FormDataTest.cpp
@@ -3,16 +3,15 @@
// found in the LICENSE file.
#include "config.h"
-#include "core/html/DOMFormData.h"
+#include "core/html/FormData.h"
-#include "core/html/FormDataList.h"
#include <gtest/gtest.h>
namespace blink {
-TEST(DOMFormDataTest, opacityGet)
+TEST(FormDataTest, opacityGet)
{
- DOMFormData* fd = DOMFormData::create(UTF8Encoding());
+ FormData* fd = FormData::create(UTF8Encoding());
fd->append("name1", "value1");
FileOrUSVString result;
@@ -37,9 +36,9 @@ TEST(DOMFormDataTest, opacityGet)
EXPECT_STREQ("value1", entry2.data().data());
}
-TEST(DOMFormDataTest, opacityGetAll)
+TEST(FormDataTest, opacityGetAll)
{
- DOMFormData* fd = DOMFormData::create(UTF8Encoding());
+ FormData* fd = FormData::create(UTF8Encoding());
fd->append("name1", "value1");
HeapVector<FormDataEntryValue> results = fd->getAll("name1");
@@ -59,9 +58,9 @@ TEST(DOMFormDataTest, opacityGetAll)
EXPECT_EQ(1u, fd->size());
}
-TEST(DOMFormDataTest, opacityHas)
+TEST(FormDataTest, opacityHas)
{
- DOMFormData* fd = DOMFormData::create(UTF8Encoding());
+ FormData* fd = FormData::create(UTF8Encoding());
fd->append("name1", "value1");
EXPECT_TRUE(fd->has("name1"));
« no previous file with comments | « Source/core/html/FormDataList.cpp ('k') | Source/core/loader/BeaconLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698