| Index: third_party/WebKit/Source/core/dom/URLSearchParamsTest.cpp | 
| diff --git a/third_party/WebKit/Source/core/dom/URLSearchParamsTest.cpp b/third_party/WebKit/Source/core/dom/URLSearchParamsTest.cpp | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..9f883473b4073e9a393a895d3fbcfdff8f952297 | 
| --- /dev/null | 
| +++ b/third_party/WebKit/Source/core/dom/URLSearchParamsTest.cpp | 
| @@ -0,0 +1,26 @@ | 
| +// Copyright 2015 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#include "config.h" | 
| +#include "core/dom/URLSearchParams.h" | 
| + | 
| +#include <gtest/gtest.h> | 
| + | 
| +namespace blink { | 
| + | 
| +using URLSearchParamsTest = ::testing::Test; | 
| + | 
| +TEST_F(URLSearchParamsTest, EncodedFormData) | 
| +{ | 
| +    URLSearchParams* params = new URLSearchParams(String()); | 
| +    EXPECT_EQ("", params->encodeFormData()->flattenToString()); | 
| + | 
| +    params->append("name", "value"); | 
| +    EXPECT_EQ("name=value", params->encodeFormData()->flattenToString()); | 
| + | 
| +    params->append("another name", "another value"); | 
| +    EXPECT_EQ("name=value&another+name=another+value", params->encodeFormData()->flattenToString()); | 
| +} | 
| + | 
| +} // namespace blink | 
|  |