Initialize message loop in fuzzers am: dc26856986

Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/2626919

Change-Id: Id8e28598e01eb2a97f7d235f0d950266da0b909c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/fuzzers/update_engine_service_fuzzer.cpp b/fuzzers/update_engine_service_fuzzer.cpp
index f9c28cb..453800f 100644
--- a/fuzzers/update_engine_service_fuzzer.cpp
+++ b/fuzzers/update_engine_service_fuzzer.cpp
@@ -27,6 +27,8 @@
 using android::sp;
 
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+  brillo::BaseMessageLoop message_loop_;
+  message_loop_.SetAsCurrent();
   auto daemonStateAndroid = std::make_unique<DaemonStateAndroid>();
   daemonStateAndroid->Initialize();