summaryrefslogtreecommitdiffstats
path: root/webkit/glue/multipart_response_delegate_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/multipart_response_delegate_unittest.cc')
-rw-r--r--webkit/glue/multipart_response_delegate_unittest.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/webkit/glue/multipart_response_delegate_unittest.cc b/webkit/glue/multipart_response_delegate_unittest.cc
index 84d1e05..0433b52 100644
--- a/webkit/glue/multipart_response_delegate_unittest.cc
+++ b/webkit/glue/multipart_response_delegate_unittest.cc
@@ -221,7 +221,7 @@ TEST(MultipartResponseTest, MissingBoundaries) {
static_cast<int>(no_start_boundary.length()));
EXPECT_EQ(1, client.received_response_);
EXPECT_EQ(1, client.received_data_);
- EXPECT_EQ(string("This is a sample response\n"),
+ EXPECT_EQ(string("This is a sample response"),
client.data_);
delegate.OnCompletedRequest();
@@ -287,7 +287,7 @@ TEST(MultipartResponseTest, MalformedBoundary) {
delegate.OnReceivedData(data.c_str(), static_cast<int>(data.length()));
EXPECT_EQ(1, client.received_response_);
EXPECT_EQ(1, client.received_data_);
- EXPECT_EQ(string("This is a sample response\n"), client.data_);
+ EXPECT_EQ(string("This is a sample response"), client.data_);
delegate.OnCompletedRequest();
EXPECT_EQ(1, client.received_response_);
@@ -304,8 +304,9 @@ struct TestChunk {
const char* expected_data;
};
-void VariousChunkSizesTest(const TestChunk chunks[], int chunks_size, int responses,
- int received_data, const char* completed_data) {
+void VariousChunkSizesTest(const TestChunk chunks[], int chunks_size,
+ int responses, int received_data,
+ const char* completed_data) {
const string data(
"--bound\n" // 0-7
"Content-type: image/png\n\n" // 8-32
@@ -618,7 +619,7 @@ TEST(MultipartResponseTest, MultipartPayloadSet) {
delegate.OnReceivedData(data.c_str(), static_cast<int>(data.length()));
EXPECT_EQ(1,
client.received_response_);
- EXPECT_EQ(string("response data\n"),
+ EXPECT_EQ(string("response data"),
client.data_);
EXPECT_EQ(false, client.response_.isMultipartPayload());
@@ -629,7 +630,7 @@ TEST(MultipartResponseTest, MultipartPayloadSet) {
delegate.OnReceivedData(data2.c_str(), static_cast<int>(data2.length()));
EXPECT_EQ(2,
client.received_response_);
- EXPECT_EQ(string("response data2\n"),
+ EXPECT_EQ(string("response data2"),
client.data_);
EXPECT_EQ(true, client.response_.isMultipartPayload());
}