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

Unified Diff: content/child/multipart_response_delegate_unittest.cc

Issue 1662013002: Remove some dead NPAPI code after r363119. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused functions Created 4 years, 11 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 | « content/child/multipart_response_delegate.cc ('k') | content/child/npapi/webplugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/multipart_response_delegate_unittest.cc
diff --git a/content/child/multipart_response_delegate_unittest.cc b/content/child/multipart_response_delegate_unittest.cc
index a6076cff250cc2b9ac06c6e83e0eb4354915a12d..a6a42622ce63cdda58ff9d8e63c927a5e38a3d76 100644
--- a/content/child/multipart_response_delegate_unittest.cc
+++ b/content/child/multipart_response_delegate_unittest.cc
@@ -490,81 +490,6 @@ TEST(MultipartResponseTest, MultipleBoundaries) {
EXPECT_EQ(static_cast<int>(data.length()), client.total_encoded_data_length_);
}
-TEST(MultipartResponseTest, MultipartByteRangeParsingTest) {
- // Test multipart/byteranges based boundary parsing.
- WebURLResponse response1;
- response1.initialize();
- response1.setMIMEType("multipart/x-mixed-replace");
- response1.setHTTPHeaderField("Content-Length", "200");
- response1.setHTTPHeaderField("Content-type",
- "multipart/byteranges; boundary=--bound--");
-
- std::string multipart_boundary;
- bool result = MultipartResponseDelegate::ReadMultipartBoundary(
- response1, &multipart_boundary);
- EXPECT_EQ(result, true);
- EXPECT_EQ(string("--bound--"),
- multipart_boundary);
-
- WebURLResponse response2;
- response2.initialize();
- response2.setMIMEType("image/png");
-
- response2.setHTTPHeaderField("Content-Length", "300");
- response2.setHTTPHeaderField("Last-Modified",
- "Mon, 04 Apr 2005 20:36:01 GMT");
- response2.setHTTPHeaderField("Date", "Thu, 11 Sep 2008 18:21:42 GMT");
-
- multipart_boundary.clear();
- result = MultipartResponseDelegate::ReadMultipartBoundary(
- response2, &multipart_boundary);
- EXPECT_EQ(result, false);
-
- WebURLResponse response3;
- response3.initialize();
- response3.setMIMEType("multipart/byteranges");
-
- response3.setHTTPHeaderField("Content-Length", "300");
- response3.setHTTPHeaderField("Last-Modified",
- "Mon, 04 Apr 2005 20:36:01 GMT");
- response3.setHTTPHeaderField("Date", "Thu, 11 Sep 2008 18:21:42 GMT");
- response3.setHTTPHeaderField("Content-type", "multipart/byteranges");
-
- multipart_boundary.clear();
- result = MultipartResponseDelegate::ReadMultipartBoundary(
- response3, &multipart_boundary);
- EXPECT_EQ(result, false);
- EXPECT_EQ(multipart_boundary.length(), 0U);
-
- WebURLResponse response4;
- response4.initialize();
- response4.setMIMEType("multipart/byteranges");
- response4.setHTTPHeaderField("Content-Length", "200");
- response4.setHTTPHeaderField("Content-type",
- "multipart/byteranges; boundary=--bound--; charSet=utf8");
-
- multipart_boundary.clear();
-
- result = MultipartResponseDelegate::ReadMultipartBoundary(
- response4, &multipart_boundary);
- EXPECT_EQ(result, true);
- EXPECT_EQ(string("--bound--"), multipart_boundary);
-
- WebURLResponse response5;
- response5.initialize();
- response5.setMIMEType("multipart/byteranges");
- response5.setHTTPHeaderField("Content-Length", "200");
- response5.setHTTPHeaderField("Content-type",
- "multipart/byteranges; boundary=\"--bound--\"; charSet=utf8");
-
- multipart_boundary.clear();
-
- result = MultipartResponseDelegate::ReadMultipartBoundary(
- response5, &multipart_boundary);
- EXPECT_EQ(result, true);
- EXPECT_EQ(string("--bound--"), multipart_boundary);
-}
-
TEST(MultipartResponseTest, MultipartContentRangesTest) {
WebURLResponse response1;
response1.initialize();
« no previous file with comments | « content/child/multipart_response_delegate.cc ('k') | content/child/npapi/webplugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698