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

Commit 2939f091 authored by Ady Abraham's avatar Ady Abraham
Browse files

SurfaceFlinger: add more cleanup to unittests

Cleanup the display vectors from Current and Drawing state
of TestableSurfaceFlinger to make sure we don't have any mock
leaked objects.

Bug: 127332154
Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest
Change-Id: I58f3339ad6ad7b01da6861e07b759611dbd2f9cc
parent 43143b97
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -341,6 +341,8 @@ public:
        // still be referenced by something despite our best efforts to destroy
        // it after each test is done.
        mutableDisplays().clear();
        mutableCurrentState().displays.clear();
        mutableDrawingState().displays.clear();
        mutableEventQueue().reset();
        mutableInterceptor().reset();
        mutableScheduler().reset();