MCPcopy Create free account
hub / github.com/Snapchat/Valdi / TEST

Function TEST

snap_drawing/test/src/DrawLooper_Tests.cpp:328–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326};
327
328TEST(DrawLooper, addRemoveListenerOnLayerRoot) {
329 DrawLooperTestContainer container;
330
331 ASSERT_FALSE(container.layerRoot->getListener() != nullptr);
332
333 container.addLayerRootToLooper(container.layerRoot);
334
335 ASSERT_TRUE(container.layerRoot->getListener() != nullptr);
336
337 container.drawLooper->removeLayerRoot(container.layerRoot);
338
339 ASSERT_FALSE(container.layerRoot->getListener() != nullptr);
340}
341
342TEST(DrawLooper, schedulesProcessFramesOnLayerUpdates) {
343 DrawLooperTestContainer container;

Callers

nothing calls this directly

Calls 15

BitmapBuilderClass · 0.85
updateSurfacePresentersFunction · 0.85
CompositorPlaneClass · 0.85
addLayerRootToLooperMethod · 0.80
removeLayerRootMethod · 0.80
runNextVSyncCallbackMethod · 0.80
needsProcessFrameMethod · 0.80
setBackgroundColorMethod · 0.80
setContentLayerMethod · 0.80
makeLayerRootMethod · 0.80

Tested by

no test coverage detected