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

Commit 3dce3360 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix tests

Change-Id: I0f4d613481eda2c44a2d631a81d75de7e52e7a62
parent 3ca76f41
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -93,7 +93,7 @@ TEST_F(SurfaceTest, ScreenshotsOfProtectedBuffersSucceed) {
    sp<ISurfaceComposer> sf(ComposerService::getComposerService());
    sp<ISurfaceComposer> sf(ComposerService::getComposerService());
    sp<IBinder> display(sf->getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain));
    sp<IBinder> display(sf->getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain));
    ASSERT_EQ(NO_ERROR, sf->captureScreen(display, bq,
    ASSERT_EQ(NO_ERROR, sf->captureScreen(display, bq,
            64, 64, 0, 0x7fffffff, true));
            64, 64, 0, 0x7fffffff));


    // Set the PROTECTED usage bit and verify that the screenshot fails.  Note
    // Set the PROTECTED usage bit and verify that the screenshot fails.  Note
    // that we need to dequeue a buffer in order for it to actually get
    // that we need to dequeue a buffer in order for it to actually get