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

Unified Diff: Source/platform/network/EncodedFormDataTest.cpp

Issue 1311923004: Rename FormData/FormDataBuilder to EncodedFormData/FormDataEncoder respectively. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comments 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/platform/network/EncodedFormData.cpp ('k') | Source/platform/network/FormData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/EncodedFormDataTest.cpp
diff --git a/Source/platform/network/FormDataTest.cpp b/Source/platform/network/EncodedFormDataTest.cpp
similarity index 93%
rename from Source/platform/network/FormDataTest.cpp
rename to Source/platform/network/EncodedFormDataTest.cpp
index f0ab332186e5e93826f9b7e321e34448d8f39ef7..e8a48d989046e2715429f54855556666215800d5 100644
--- a/Source/platform/network/FormDataTest.cpp
+++ b/Source/platform/network/EncodedFormDataTest.cpp
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "config.h"
-#include "platform/network/FormData.h"
+#include "platform/network/EncodedFormData.h"
#include <gtest/gtest.h>
@@ -11,7 +11,7 @@ namespace blink {
namespace {
-class FormDataTest : public ::testing::Test {
+class EncodedFormDataTest : public ::testing::Test {
public:
void checkDeepCopied(const String& a, const String& b)
{
@@ -37,9 +37,9 @@ public:
}
};
-TEST_F(FormDataTest, DeepCopy)
+TEST_F(EncodedFormDataTest, DeepCopy)
{
- RefPtr<FormData> original(FormData::create());
+ RefPtr<EncodedFormData> original(EncodedFormData::create());
original->appendData("Foo", 3);
original->appendFileRange("example.txt", 12345, 56789, 9999.0);
original->appendBlob("originalUUID", nullptr);
@@ -51,7 +51,7 @@ TEST_F(FormDataTest, DeepCopy)
original->setBoundary(boundaryVector);
original->setContainsPasswordData(true);
- RefPtr<FormData> copy = original->deepCopy();
+ RefPtr<EncodedFormData> copy = original->deepCopy();
// Check that contents are copied (compare the copy with expected values).
const Vector<FormDataElement>& originalElements = original->elements();
« no previous file with comments | « Source/platform/network/EncodedFormData.cpp ('k') | Source/platform/network/FormData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698