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

Unified Diff: content/browser/loader/async_resource_handler_unittest.cc

Issue 2506363005: Send encoded_body_length to renderer when response completed (3/3) (Closed)
Patch Set: rebase Created 4 years, 1 month 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/browser/loader/async_resource_handler.cc ('k') | content/child/resource_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/async_resource_handler_unittest.cc
diff --git a/content/browser/loader/async_resource_handler_unittest.cc b/content/browser/loader/async_resource_handler_unittest.cc
index f0697034b8fbc55f464e6e438363d506b3d052a2..c4fe0d2e8be5ef5a74f2c19b3fde88119e26d5d3 100644
--- a/content/browser/loader/async_resource_handler_unittest.cc
+++ b/content/browser/loader/async_resource_handler_unittest.cc
@@ -262,8 +262,6 @@ TEST_F(AsyncResourceHandlerTest, OneChunkLengths) {
int encoded_data_length = std::get<3>(params);
EXPECT_EQ(kDataSize, encoded_data_length);
- int encoded_body_length = std::get<4>(params);
- EXPECT_EQ(kDataSize, encoded_body_length);
ASSERT_EQ(ResourceMsg_RequestComplete::ID, messages[3]->type());
ResourceMsg_RequestComplete::Param completion_params;
@@ -294,8 +292,6 @@ TEST_F(AsyncResourceHandlerTest, InlinedChunkLengths) {
int encoded_data_length = std::get<2>(params);
EXPECT_EQ(kDataSize, encoded_data_length);
- int encoded_body_length = std::get<3>(params);
- EXPECT_EQ(kDataSize, encoded_body_length);
ASSERT_EQ(ResourceMsg_RequestComplete::ID, messages[2]->type());
ResourceMsg_RequestComplete::Param completion_params;
@@ -320,16 +316,12 @@ TEST_F(AsyncResourceHandlerTest, TwoChunksLengths) {
int encoded_data_length = std::get<3>(params);
EXPECT_EQ(32768, encoded_data_length);
- int encoded_body_length = std::get<4>(params);
- EXPECT_EQ(32768, encoded_body_length);
ASSERT_EQ(ResourceMsg_DataReceived::ID, messages[3]->type());
ResourceMsg_DataReceived::Read(messages[3].get(), &params);
encoded_data_length = std::get<3>(params);
EXPECT_EQ(32768, encoded_data_length);
- encoded_body_length = std::get<4>(params);
- EXPECT_EQ(32768, encoded_body_length);
ASSERT_EQ(ResourceMsg_RequestComplete::ID, messages[4]->type());
ResourceMsg_RequestComplete::Param completion_params;
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/child/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698