#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizer.h"
#import "flutter/fml/synchronization/waitable_event.h"
#import "flutter/testing/testing.h"
Go to the source code of this file.
Classes | |
class | FlutterThreadSynchronizerTestScaffold |
Functions | |
TEST (FlutterThreadSynchronizerTest, RegularCommit) | |
TEST (FlutterThreadSynchronizerTest, ResizingBlocksRenderingUntilSizeMatches) | |
TEST (FlutterThreadSynchronizerTest, ShutdownMakesEverythingNonBlocking) | |
TEST (FlutterThreadSynchronizerTest, RegularCommitForMultipleViews) | |
TEST (FlutterThreadSynchronizerTest, ResizingForMultipleViews) | |
Variables | |
std::shared_ptr< fml::AutoResetWaitableEvent > | _mainLatch |
dispatch_queue_t | _renderQueue |
std::shared_ptr< fml::AutoResetWaitableEvent > | _renderLatch |
FlutterThreadSynchronizer * | _synchronizer |
TEST | ( | FlutterThreadSynchronizerTest | , |
RegularCommit | |||
) |
Definition at line 71 of file FlutterThreadSynchronizerTest.mm.
References FlutterThreadSynchronizer::beginResizeForView:size:notify:, FlutterThreadSynchronizerTestScaffold::dispatchMainTask:, FlutterThreadSynchronizerTestScaffold::dispatchRenderTask:, FlutterThreadSynchronizerTestScaffold::joinMain, FlutterThreadSynchronizerTestScaffold::joinRender, FlutterThreadSynchronizer::performCommitForView:size:notify:, FlutterThreadSynchronizer::registerView:, and FlutterThreadSynchronizerTestScaffold::synchronizer.
TEST | ( | FlutterThreadSynchronizerTest | , |
RegularCommitForMultipleViews | |||
) |
Definition at line 236 of file FlutterThreadSynchronizerTest.mm.
References FlutterThreadSynchronizer::beginResizeForView:size:notify:, FlutterThreadSynchronizerTestScaffold::dispatchMainTask:, FlutterThreadSynchronizerTestScaffold::dispatchRenderTask:, FlutterThreadSynchronizerTestScaffold::joinMain, FlutterThreadSynchronizerTestScaffold::joinRender, FlutterThreadSynchronizer::performCommitForView:size:notify:, FlutterThreadSynchronizer::registerView:, and FlutterThreadSynchronizerTestScaffold::synchronizer.
TEST | ( | FlutterThreadSynchronizerTest | , |
ResizingBlocksRenderingUntilSizeMatches | |||
) |
Definition at line 116 of file FlutterThreadSynchronizerTest.mm.
References FlutterThreadSynchronizer::beginResizeForView:size:notify:, FlutterThreadSynchronizerTestScaffold::dispatchMainTask:, FlutterThreadSynchronizerTestScaffold::dispatchRenderTask:, FlutterThreadSynchronizerTestScaffold::joinMain, FlutterThreadSynchronizerTestScaffold::joinRender, FlutterThreadSynchronizer::performCommitForView:size:notify:, FlutterThreadSynchronizer::registerView:, and FlutterThreadSynchronizerTestScaffold::synchronizer.
TEST | ( | FlutterThreadSynchronizerTest | , |
ResizingForMultipleViews | |||
) |
Definition at line 288 of file FlutterThreadSynchronizerTest.mm.
References FlutterThreadSynchronizer::beginResizeForView:size:notify:, FlutterThreadSynchronizerTestScaffold::dispatchMainTask:, FlutterThreadSynchronizerTestScaffold::dispatchRenderTask:, FlutterThreadSynchronizerTestScaffold::joinMain, FlutterThreadSynchronizerTestScaffold::joinRender, FlutterThreadSynchronizer::performCommitForView:size:notify:, FlutterThreadSynchronizer::registerView:, and FlutterThreadSynchronizerTestScaffold::synchronizer.
TEST | ( | FlutterThreadSynchronizerTest | , |
ShutdownMakesEverythingNonBlocking | |||
) |
Definition at line 181 of file FlutterThreadSynchronizerTest.mm.
References FlutterThreadSynchronizer::beginResizeForView:size:notify:, FlutterThreadSynchronizerTestScaffold::dispatchMainTask:, FlutterThreadSynchronizerTestScaffold::dispatchRenderTask:, FlutterThreadSynchronizerTestScaffold::joinMain, FlutterThreadSynchronizerTestScaffold::joinRender, FlutterThreadSynchronizer::performCommitForView:size:notify:, FlutterThreadSynchronizer::registerView:, FlutterThreadSynchronizer::shutdown, and FlutterThreadSynchronizerTestScaffold::synchronizer.
std::shared_ptr<fml::AutoResetWaitableEvent> _mainLatch |
Definition at line 21 of file FlutterThreadSynchronizerTest.mm.
std::shared_ptr<fml::AutoResetWaitableEvent> _renderLatch |
Definition at line 26 of file FlutterThreadSynchronizerTest.mm.
dispatch_queue_t _renderQueue |
Definition at line 25 of file FlutterThreadSynchronizerTest.mm.
Referenced by FlutterThreadSynchronizerTestScaffold::dispatchRenderTask:, FlutterThreadSynchronizerTestScaffold::init, and FlutterThreadSynchronizerTestScaffold::joinRender.
FlutterThreadSynchronizer* _synchronizer |
Definition at line 28 of file FlutterThreadSynchronizerTest.mm.
Referenced by FlutterThreadSynchronizerTestScaffold::init.