Flutter macOS Embedder
FlutterEngineTest.mm File Reference
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h"
#include <objc/objc.h>
#include <algorithm>
#include <functional>
#include <thread>
#include <vector>
#include "flutter/fml/synchronization/waitable_event.h"
#include "flutter/lib/ui/window/platform_message.h"
#include "flutter/shell/platform/common/accessibility_bridge.h"
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h"
#import "flutter/shell/platform/darwin/common/framework/Source/FlutterBinaryMessengerRelay.h"
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterAppDelegate.h"
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterAppLifecycleDelegate.h"
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterPluginMacOS.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterCompositor.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterEngineTestUtils.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewControllerTestUtils.h"
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/embedder/embedder_engine.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/testing/stream_capture.h"
#include "flutter/testing/test_dart_native_resolver.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Classes

category  FlutterEngine(Test)
 
class  TestPlatformViewFactory
 
class  PlainAppDelegate
 
class  FakeLifecycleProvider
 
class  FakeAppDelegatePlugin
 
class  MockableFlutterEngine
 

Namespaces

 flutter
 
 flutter::testing
 

Functions

 flutter::testing::TEST_F (FlutterEngineTest, CanLaunch)
 
 flutter::testing::TEST_F (FlutterEngineTest, HasNonNullExecutableName)
 
 flutter::testing::TEST_F (FlutterEngineTest, Switches)
 
 flutter::testing::TEST_F (FlutterEngineTest, MessengerSend)
 
 flutter::testing::TEST_F (FlutterEngineTest, CanLogToStdout)
 
 flutter::testing::TEST_F (FlutterEngineTest, DISABLED_BackgroundIsBlack)
 
 flutter::testing::TEST_F (FlutterEngineTest, DISABLED_CanOverrideBackgroundColor)
 
 flutter::testing::TEST_F (FlutterEngineTest, CanToggleAccessibility)
 
 flutter::testing::TEST_F (FlutterEngineTest, CanToggleAccessibilityWhenHeadless)
 
 flutter::testing::TEST_F (FlutterEngineTest, ProducesAccessibilityTreeWhenAddingViews)
 
 flutter::testing::TEST_F (FlutterEngineTest, NativeCallbacks)
 
 flutter::testing::TEST_F (FlutterEngineTest, Compositor)
 
 flutter::testing::TEST_F (FlutterEngineTest, CompositorIgnoresUnknownView)
 
 flutter::testing::TEST_F (FlutterEngineTest, DartEntrypointArguments)
 
 flutter::testing::TEST_F (FlutterEngineTest, FlutterBinaryMessengerDoesNotRetainEngine)
 
 flutter::testing::TEST_F (FlutterEngineTest, FlutterTextureRegistryDoesNotReturnEngine)
 
 flutter::testing::TEST_F (FlutterEngineTest, PublishedValueNilForUnknownPlugin)
 
 flutter::testing::TEST_F (FlutterEngineTest, PublishedValueNSNullIfNoPublishedValue)
 
 flutter::testing::TEST_F (FlutterEngineTest, PublishedValueReturnsLastPublished)
 
 flutter::testing::TEST_F (FlutterEngineTest, MessengerCleanupConnectionWorks)
 
 flutter::testing::TEST_F (FlutterEngineTest, HasStringsWhenPasteboardEmpty)
 
 flutter::testing::TEST_F (FlutterEngineTest, HasStringsWhenPasteboardFull)
 
 flutter::testing::TEST_F (FlutterEngineTest, ResponseAfterEngineDied)
 
 flutter::testing::TEST_F (FlutterEngineTest, ResponseFromBackgroundThread)
 
 flutter::testing::TEST_F (FlutterEngineTest, ThreadSynchronizerNotBlockingRasterThreadAfterShutdown)
 
 flutter::testing::TEST_F (FlutterEngineTest, ManageControllersIfInitiatedByController)
 
 flutter::testing::TEST_F (FlutterEngineTest, ManageControllersIfInitiatedByEngine)
 
 flutter::testing::TEST_F (FlutterEngineTest, RemovingViewDisposesCompositorResources)
 
 flutter::testing::TEST_F (FlutterEngineTest, HandlesTerminationRequest)
 
 flutter::testing::TEST_F (FlutterEngineTest, IgnoresTerminationRequestIfNotFlutterAppDelegate)
 
 flutter::testing::TEST_F (FlutterEngineTest, HandleAccessibilityEvent)
 
 flutter::testing::TEST_F (FlutterEngineTest, HandleLifecycleStates) API_AVAILABLE(macos(10.9))
 
 flutter::testing::TEST_F (FlutterEngineTest, ForwardsPluginDelegateRegistration)
 
 flutter::testing::TEST_F (FlutterEngineTest, UnregistersPluginsOnEngineDestruction)
 
 flutter::testing::TEST_F (FlutterEngineTest, RunWithEntrypointUpdatesDisplayConfig)
 
 flutter::testing::TEST_F (FlutterEngineTest, NotificationsUpdateDisplays)
 
 flutter::testing::TEST_F (FlutterEngineTest, DisplaySizeIsInPhysicalPixel)
 
 flutter::testing::TEST_F (FlutterEngineTest, ReportsHourFormat)
 

Variables

constexpr int64_t kImplicitViewId = 0ll
 

Variable Documentation

◆ kImplicitViewId

constexpr int64_t kImplicitViewId = 0ll
constexpr

Definition at line 36 of file FlutterEngineTest.mm.