summaryrefslogtreecommitdiffstats
path: root/webkit/glue/multipart_response_delegate_unittest.cc
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 12:46:38 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 12:46:38 +0000
commitf0a51fb571f46531025fa09240bbc3e1af925e84 (patch)
tree558b4f0e737fda4b9ab60f252c9c23b8a4ca523e /webkit/glue/multipart_response_delegate_unittest.cc
parent6390be368205705f49ead3cec40396519f13b889 (diff)
downloadchromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.zip
chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.gz
chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.bz2
Fixes CRLF and trailing white spaces.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/multipart_response_delegate_unittest.cc')
-rw-r--r--webkit/glue/multipart_response_delegate_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/webkit/glue/multipart_response_delegate_unittest.cc b/webkit/glue/multipart_response_delegate_unittest.cc
index c70f55a..6a02c75 100644
--- a/webkit/glue/multipart_response_delegate_unittest.cc
+++ b/webkit/glue/multipart_response_delegate_unittest.cc
@@ -44,7 +44,7 @@ class MockResourceHandleClient : public ResourceHandleClient {
++received_data_;
data_.append(data, data_length);
}
-
+
void Reset() {
received_response_ = received_data_ = 0;
data_.clear();
@@ -139,7 +139,7 @@ TEST(MultipartResponseTest, Functions) {
EXPECT_EQ(webkit_glue::StringToStdWString(
client.resource_response_.httpHeaderField(String("foo"))),
wstring(L"Bar"));
-
+
// FindBoundary tests
struct {
const char* boundary;
@@ -276,7 +276,7 @@ void VariousChunkSizesTest(const TestChunk chunks[], int chunks_size, int respon
String());
MockResourceHandleClient client;
MultipartResponseDelegate delegate(&client, NULL, response, "bound");
-
+
for (int i = 0; i < chunks_size; ++i) {
ASSERT(chunks[i].start_pos < chunks[i].end_pos);
string chunk = data.substr(chunks[i].start_pos,
@@ -373,7 +373,7 @@ TEST(MultipartResponseTest, BreakInData) {
};
VariousChunkSizesTest(data2, arraysize(data2),
2, 2, "foofoofoofoofoo");
-
+
// Incomplete send
const TestChunk data3[] = {
{ 0, 35, 1, 0, "" },
@@ -389,7 +389,7 @@ TEST(MultipartResponseTest, MultipleBoundaries) {
String());
MockResourceHandleClient client;
MultipartResponseDelegate delegate(&client, NULL, response, "bound");
-
+
string data("--bound\r\n\r\n--bound\r\n\r\nfoofoo--bound--");
delegate.OnReceivedData(data.c_str(), static_cast<int>(data.length()));
EXPECT_EQ(2,
@@ -488,7 +488,7 @@ TEST(MultipartResponseTest, MultipartContentRangesTest) {
response1.setHTTPHeaderField(
String("Content-Range"),
String("bytes 1000-1050/5000"));
-
+
int content_range_lower_bound = 0;
int content_range_upper_bound = 0;
@@ -506,7 +506,7 @@ TEST(MultipartResponseTest, MultipartContentRangesTest) {
response2.setHTTPHeaderField(
String("Content-Range"),
String("bytes 1000/1050"));
-
+
content_range_lower_bound = 0;
content_range_upper_bound = 0;