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

Side by Side Diff: Source/web/tests/AssociatedURLLoaderTest.cpp

Issue 156623005: Add transfer size paramater to didFinishLoading [3/3] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 EXPECT_TRUE(data); 164 EXPECT_TRUE(data);
165 EXPECT_GT(dataLength, 0); 165 EXPECT_GT(dataLength, 0);
166 } 166 }
167 167
168 void didReceiveCachedMetadata(WebURLLoader* loader, const char* data, int da taLength) 168 void didReceiveCachedMetadata(WebURLLoader* loader, const char* data, int da taLength)
169 { 169 {
170 m_didReceiveCachedMetadata = true; 170 m_didReceiveCachedMetadata = true;
171 EXPECT_EQ(m_expectedLoader, loader); 171 EXPECT_EQ(m_expectedLoader, loader);
172 } 172 }
173 173
174 void didFinishLoading(WebURLLoader* loader, double finishTime) 174 void didFinishLoading(WebURLLoader* loader, double finishTime, int64_t encod edDataLength)
175 { 175 {
176 m_didFinishLoading = true; 176 m_didFinishLoading = true;
177 EXPECT_EQ(m_expectedLoader, loader); 177 EXPECT_EQ(m_expectedLoader, loader);
178 } 178 }
179 179
180 void didFail(WebURLLoader* loader, const WebURLError& error) 180 void didFail(WebURLLoader* loader, const WebURLError& error)
181 { 181 {
182 m_didFail = true; 182 m_didFail = true;
183 EXPECT_EQ(m_expectedLoader, loader); 183 EXPECT_EQ(m_expectedLoader, loader);
184 if (m_runningMessageLoop) { 184 if (m_runningMessageLoop) {
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 m_expectedLoader->loadAsynchronously(request, this); 657 m_expectedLoader->loadAsynchronously(request, this);
658 serveRequests(); 658 serveRequests();
659 EXPECT_TRUE(m_didReceiveResponse); 659 EXPECT_TRUE(m_didReceiveResponse);
660 EXPECT_TRUE(m_didReceiveData); 660 EXPECT_TRUE(m_didReceiveData);
661 EXPECT_TRUE(m_didFinishLoading); 661 EXPECT_TRUE(m_didFinishLoading);
662 662
663 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty()); 663 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty());
664 } 664 }
665 665
666 } 666 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698