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

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

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Created 4 years, 6 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
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 d360759b4d993bb766931322e7bec5130a5d2dca..3201b0fe0c1985d8baa29fdb485b533c2db4fea4 100644
--- a/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
+++ b/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
@@ -47,7 +47,7 @@ TEST_F(DocumentLoaderTest, SingleChunk)
void didReceiveData(WebURLLoaderClient* originalClient, WebURLLoader* loader, const char* data, int dataLength, int encodedDataLength) override
{
EXPECT_EQ(34, dataLength) << "foo.html was not served in a single chunk";
- originalClient->didReceiveData(loader, data, dataLength, encodedDataLength);
+ originalClient->didReceiveData(loader, data, dataLength, encodedDataLength, dataLength);
}
} delegate;
@@ -71,7 +71,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);
+ originalClient->didReceiveData(loader, &data[i], 1, 1, 1);
}
} delegate;
@@ -138,7 +138,7 @@ TEST_F(DocumentLoaderTest, MultiChunkWithReentrancy)
{
char c = m_data.front();
m_data.pop();
- m_loaderClient->didReceiveData(m_loader, &c, 1, 1);
+ m_loaderClient->didReceiveData(m_loader, &c, 1, 1, 1);
}
bool servedReentrantly() const { return m_servedReentrantly; }

Powered by Google App Engine
This is Rietveld 408576698