Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1713849e authored by Devin Moore's avatar Devin Moore
Browse files

Update mediarecorder_fuzzer for new fake service manager

The name of the class has changed to make it more obvious we are using a
fake service manager.

Test: m mediarecorder_fuzzer
Bug: 259548383
Change-Id: I05d2fa090fac7e965d9ae0ddced5e34ec07fcd3c
parent 37eed1f3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
#include <AudioFlinger.h>
#include <MediaPlayerService.h>
#include <ResourceManagerService.h>
#include <ServiceManager.h>
#include <fakeservicemanager/FakeServiceManager.h>
#include <StagefrightRecorder.h>
#include <camera/Camera.h>
#include <camera/android/hardware/ICamera.h>
@@ -315,7 +315,7 @@ extern "C" int LLVMFuzzerInitialize(int /* *argc */, char /* ***argv */) {
     * Initializing a FakeServiceManager and adding the instances
     * of all the required services
     */
    sp<IServiceManager> fakeServiceManager = new ServiceManager();
    sp<IServiceManager> fakeServiceManager = new FakeServiceManager();
    setDefaultServiceManager(fakeServiceManager);
    MediaPlayerService::instantiate();
    AudioFlinger::instantiate();