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

Unified Diff: content/child/web_url_loader_impl_unittest.cc

Issue 2540023003: Dispatch encoded_data_length separately in content/child (Closed)
Patch Set: rebase Created 4 years 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
Index: content/child/web_url_loader_impl_unittest.cc
diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc
index 4e8a54bfd067487470fcd78b226133d6cf28de9e..beeaa246cf54b75e3a8c2baa9db15089a75cfc62 100644
--- a/content/child/web_url_loader_impl_unittest.cc
+++ b/content/child/web_url_loader_impl_unittest.cc
@@ -178,9 +178,7 @@ class TestWebURLLoaderClient : public blink::WebURLLoaderClient {
EXPECT_TRUE(loader_);
}
- void didReceiveData(const char* data,
- int dataLength,
- int encodedDataLength) override {
+ void didReceiveData(const char* data, int dataLength) override {
EXPECT_TRUE(loader_);
// The response should have started, but must not have finished, or failed.
EXPECT_TRUE(did_receive_response_);
@@ -317,7 +315,7 @@ class WebURLLoaderImplTest : public testing::Test {
EXPECT_EQ("", client()->received_data());
auto size = strlen(kTestData);
peer()->OnReceivedData(
- base::MakeUnique<FixedReceivedData>(kTestData, size, size));
+ base::MakeUnique<FixedReceivedData>(kTestData, size));
EXPECT_EQ(kTestData, client()->received_data());
}
@@ -351,7 +349,7 @@ class WebURLLoaderImplTest : public testing::Test {
void DoReceiveDataFtp() {
auto size = strlen(kFtpDirListing);
peer()->OnReceivedData(
- base::MakeUnique<FixedReceivedData>(kFtpDirListing, size, size));
+ base::MakeUnique<FixedReceivedData>(kFtpDirListing, size));
// The FTP delegate should modify the data the client sees.
EXPECT_NE(kFtpDirListing, client()->received_data());
}

Powered by Google App Engine
This is Rietveld 408576698