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

Unified Diff: third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/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
Index: third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp b/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
index d76a4d986fec051287e0015ca92a717942f7cdc9..7a9a4ba246699c894448bebf1244e1604c0ea8d1 100644
--- a/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
+++ b/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
@@ -50,7 +50,7 @@ TEST_F(DocumentLoaderTest, SingleChunk) {
int encodedDataLength) override {
EXPECT_EQ(34, dataLength) << "foo.html was not served in a single chunk";
originalClient->didReceiveData(loader, data, dataLength,
- encodedDataLength, dataLength);
+ encodedDataLength);
}
} delegate;
@@ -76,7 +76,7 @@ TEST_F(DocumentLoaderTest, MultiChunkNoReentrancy) {
EXPECT_EQ(34, dataLength) << "foo.html was not served in a single chunk";
// Chunk the reply into one byte chunks.
for (int i = 0; i < dataLength; ++i)
- originalClient->didReceiveData(loader, &data[i], 1, 1, 1);
+ originalClient->didReceiveData(loader, &data[i], 1, 1);
}
} delegate;
@@ -147,7 +147,7 @@ TEST_F(DocumentLoaderTest, MultiChunkWithReentrancy) {
void dispatchOneByte() {
char c = m_data.front();
m_data.pop();
- m_loaderClient->didReceiveData(m_loader, &c, 1, 1, 1);
+ m_loaderClient->didReceiveData(m_loader, &c, 1, 1);
}
bool servedReentrantly() const { return m_servedReentrantly; }
« no previous file with comments | « third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698