Fix broken test due to uninitialized members am: f693d8d17e am: 279eaeac01
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1384019
Change-Id: Ib253f3a9e5ebf4f6c99e0e8c79981f160701a1f4
diff --git a/common/mock_http_fetcher.h b/common/mock_http_fetcher.h
index b082bbd..ea5b83d 100644
--- a/common/mock_http_fetcher.h
+++ b/common/mock_http_fetcher.h
@@ -132,10 +132,10 @@
brillo::Blob data_;
// The current offset, marks the first byte that will be sent next
- size_t sent_offset_;
+ size_t sent_offset_{0};
// Total number of bytes transferred
- size_t bytes_sent_;
+ size_t bytes_sent_{0};
// The extra headers set.
std::map<std::string, std::string> extra_headers_;
@@ -145,13 +145,13 @@
brillo::MessageLoop::TaskId timeout_id_;
// True iff the fetcher is paused.
- bool paused_;
+ bool paused_{false};
// Set to true if the transfer should fail.
- bool fail_transfer_;
+ bool fail_transfer_{false};
// Set to true if BeginTransfer should EXPECT fail.
- bool never_use_;
+ bool never_use_{false};
// Whether it should wait for 10ms before sending data to delegates
bool delay_{true};