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

Unified Diff: content/child/shared_memory_data_consumer_handle_unittest.cc

Issue 2540023003: Dispatch encoded_data_length separately in content/child (Closed)
Patch Set: fix 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/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 7c976fd58b7cc865b7e7ffd51cbd1b576e22dcdb..df8ad77c1cec1ba8b23590b0f49b094c8af0d870 100644
--- a/content/child/shared_memory_data_consumer_handle_unittest.cc
+++ b/content/child/shared_memory_data_consumer_handle_unittest.cc
@@ -83,9 +83,6 @@ class LoggingFixedReceivedData final : public RequestPeer::ReceivedData {
return data_.empty() ? nullptr : &data_[0];
}
int length() const override { return static_cast<int>(data_.size()); }
- int encoded_data_length() const override {
- return static_cast<int>(data_.size());
- }
private:
const std::string name_;
@@ -200,8 +197,7 @@ class SharedMemoryDataConsumerHandleTest
handle_.reset(new SharedMemoryDataConsumerHandle(GetParam(), &writer_));
}
std::unique_ptr<FixedReceivedData> NewFixedData(const char* s) {
- auto size = strlen(s);
- return base::MakeUnique<FixedReceivedData>(s, size, size);
+ return base::MakeUnique<FixedReceivedData>(s, strlen(s));
}
StrictMock<MockClient> client_;

Powered by Google App Engine
This is Rietveld 408576698