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

Unified Diff: content/child/shared_memory_data_consumer_handle_unittest.cc

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: Fixes from ksakamoto review Created 4 years, 5 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: content/child/shared_memory_data_consumer_handle_unittest.cc
diff --git a/content/child/shared_memory_data_consumer_handle_unittest.cc b/content/child/shared_memory_data_consumer_handle_unittest.cc
index a832ee29f219790702ef8d60b93b9ea6880b11e2..83ed433f292fad3cd48d95b55303a216b0d5e487 100644
--- a/content/child/shared_memory_data_consumer_handle_unittest.cc
+++ b/content/child/shared_memory_data_consumer_handle_unittest.cc
@@ -81,7 +81,12 @@ class LoggingFixedReceivedData final : public RequestPeer::ReceivedData {
return data_.empty() ? nullptr : &data_[0];
}
int length() const override { return static_cast<int>(data_.size()); }
- int encoded_length() const override { return static_cast<int>(data_.size()); }
+ int encoded_data_length() const override {
+ return static_cast<int>(data_.size());
+ }
+ int encoded_body_length() const override {
+ return static_cast<int>(data_.size());
+ }
private:
const std::string name_;
@@ -196,7 +201,8 @@ class SharedMemoryDataConsumerHandleTest
handle_.reset(new SharedMemoryDataConsumerHandle(GetParam(), &writer_));
}
std::unique_ptr<FixedReceivedData> NewFixedData(const char* s) {
- return base::WrapUnique(new FixedReceivedData(s, strlen(s), strlen(s)));
+ auto size = strlen(s);
+ return base::WrapUnique(new FixedReceivedData(s, size, size, size));
}
StrictMock<MockClient> client_;

Powered by Google App Engine
This is Rietveld 408576698