Flutter Engine
shell_unittests.cc File Reference
#include <algorithm>
#include <ctime>
#include <functional>
#include <future>
#include <memory>
#include "flutter/flow/layers/layer_tree.h"
#include "flutter/flow/layers/picture_layer.h"
#include "flutter/flow/layers/transform_layer.h"
#include "flutter/fml/command_line.h"
#include "flutter/fml/dart/dart_converter.h"
#include "flutter/fml/make_copyable.h"
#include "flutter/fml/message_loop.h"
#include "flutter/fml/synchronization/count_down_latch.h"
#include "flutter/fml/synchronization/waitable_event.h"
#include "flutter/runtime/dart_vm.h"
#include "flutter/shell/common/persistent_cache.h"
#include "flutter/shell/common/platform_view.h"
#include "flutter/shell/common/rasterizer.h"
#include "flutter/shell/common/shell_test.h"
#include "flutter/shell/common/shell_test_external_view_embedder.h"
#include "flutter/shell/common/shell_test_platform_view.h"
#include "flutter/shell/common/switches.h"
#include "flutter/shell/common/thread_host.h"
#include "flutter/shell/common/vsync_waiter_fallback.h"
#include "flutter/shell/version/version.h"
#include "flutter/testing/testing.h"
#include "third_party/rapidjson/include/rapidjson/writer.h"
#include "third_party/skia/include/core/SkPictureRecorder.h"
#include "third_party/tonic/converter/dart_converter.h"

Go to the source code of this file.

Classes

class  flutter::testing::MockTexture
 

Namespaces

 flutter
 
 flutter::testing
 

Macros

#define FML_USED_ON_EMBEDDER
 

Functions

static bool flutter::testing::ValidateShell (Shell *shell)
 
static bool flutter::testing::RasterizerHasLayerTree (Shell *shell)
 
static void flutter::testing::ValidateDestroyPlatformView (Shell *shell)
 
static std::string flutter::testing::CreateFlagsString (std::vector< const char *> &flags)
 
static void flutter::testing::TestDartVmFlags (std::vector< const char *> &flags)
 
 flutter::testing::TEST_F (ShellTest, InitializeWithInvalidThreads)
 
 flutter::testing::TEST_F (ShellTest, InitializeWithDifferentThreads)
 
 flutter::testing::TEST_F (ShellTest, InitializeWithSingleThread)
 
 flutter::testing::TEST_F (ShellTest, InitializeWithSingleThreadWhichIsTheCallingThread)
 
 flutter::testing::TEST_F (ShellTest, InitializeWithMultipleThreadButCallingThreadAsPlatformThread)
 
 flutter::testing::TEST_F (ShellTest, InitializeWithGPUAndPlatformThreadsTheSame)
 
 flutter::testing::TEST_F (ShellTest, FixturesAreFunctional)
 
 flutter::testing::TEST_F (ShellTest, SecondaryIsolateBindingsAreSetupViaShellSettings)
 
 flutter::testing::TEST_F (ShellTest, LastEntrypoint)
 
 flutter::testing::TEST_F (ShellTest, DisallowedDartVMFlag)
 
 flutter::testing::TEST_F (ShellTest, AllowedDartVMFlag)
 
 flutter::testing::TEST_F (ShellTest, NoNeedToReportTimingsByDefault)
 
 flutter::testing::TEST_F (ShellTest, NeedsReportTimingsIsSetWithCallback)
 
static void flutter::testing::CheckFrameTimings (const std::vector< FrameTiming > &timings, fml::TimePoint start, fml::TimePoint finish)
 
 flutter::testing::TEST_F (ShellTest, DISABLED_ReportTimingsIsCalled)
 
 flutter::testing::TEST_F (ShellTest, FrameRasterizedCallbackIsCalled)
 
 flutter::testing::TEST_F (ShellTest, ExternalEmbedderNoThreadMerger)
 
 flutter::testing::TEST_F (ShellTest, ExternalEmbedderEndFrameIsCalledWhenPostPrerollResultIsResubmit)
 
 flutter::testing::TEST_F (ShellTest, OnPlatformViewDestroyDisablesThreadMerger)
 
 flutter::testing::TEST_F (ShellTest, OnPlatformViewDestroyAfterMergingThreads)
 
 flutter::testing::TEST_F (ShellTest, OnPlatformViewDestroyWhenThreadsAreMerging)
 
 flutter::testing::TEST_F (ShellTest, OnPlatformViewDestroyWithThreadMergerWhileThreadsAreUnmerged)
 
 flutter::testing::TEST_F (ShellTest, OnPlatformViewDestroyWithoutRasterThreadMerger)
 
 flutter::testing::TEST_F (ShellTest, OnPlatformViewDestroyWithStaticThreadMerging)
 
 flutter::testing::TEST_F (ShellTest, DISABLED_SkipAndSubmitFrame)
 
 flutter::testing::TEST_F (ShellTest, ResubmitFrame)
 
 flutter::testing::TEST (SettingsTest, FrameTimingSetsAndGetsProperly)
 
 flutter::testing::TEST_F (ShellTest, ReportTimingsIsCalledSoonerInNonReleaseMode)
 
 flutter::testing::TEST_F (ShellTest, ReportTimingsIsCalledImmediatelyAfterTheFirstFrame)
 
 flutter::testing::TEST_F (ShellTest, ReloadSystemFonts)
 
 flutter::testing::TEST_F (ShellTest, WaitForFirstFrame)
 
 flutter::testing::TEST_F (ShellTest, WaitForFirstFrameZeroSizeFrame)
 
 flutter::testing::TEST_F (ShellTest, WaitForFirstFrameTimeout)
 
 flutter::testing::TEST_F (ShellTest, WaitForFirstFrameMultiple)
 
 flutter::testing::TEST_F (ShellTest, WaitForFirstFrameInlined)
 
static size_t flutter::testing::GetRasterizerResourceCacheBytesSync (const Shell &shell)
 
 flutter::testing::TEST_F (ShellTest, SetResourceCacheSize)
 
 flutter::testing::TEST_F (ShellTest, SetResourceCacheSizeEarly)
 
 flutter::testing::TEST_F (ShellTest, SetResourceCacheSizeNotifiesDart)
 
 flutter::testing::TEST_F (ShellTest, CanCreateImagefromDecompressedBytes)
 
 flutter::testing::TEST_F (ShellTest, TextureFrameMarkedAvailableAndUnregister)
 
 flutter::testing::TEST_F (ShellTest, IsolateCanAccessPersistentIsolateData)
 
static void flutter::testing::LogSkData (sk_sp< SkData > data, const char *title)
 
 flutter::testing::TEST_F (ShellTest, Screenshot)
 
 flutter::testing::TEST_F (ShellTest, CanConvertToAndFromMappings)
 
 flutter::testing::TEST_F (ShellTest, LocaltimesMatch)
 
 flutter::testing::TEST_F (ShellTest, CanDecompressImageFromAsset)
 
 flutter::testing::TEST_F (ShellTest, OnServiceProtocolGetSkSLsWorks)
 
 flutter::testing::TEST_F (ShellTest, RasterizerScreenshot)
 
 flutter::testing::TEST_F (ShellTest, RasterizerMakeRasterSnapshot)
 
static sk_sp< SkPicture > flutter::testing::MakeSizedPicture (int width, int height)
 
 flutter::testing::TEST_F (ShellTest, OnServiceProtocolEstimateRasterCacheMemoryWorks)
 
 flutter::testing::TEST_F (ShellTest, DiscardLayerTreeOnResize)
 
 flutter::testing::TEST_F (ShellTest, IgnoresInvalidMetrics)
 
 flutter::testing::TEST_F (ShellTest, OnServiceProtocolSetAssetBundlePathWorks)
 
 flutter::testing::TEST_F (ShellTest, EngineRootIsolateLaunchesDontTakeVMDataSettings)
 

Macro Definition Documentation

◆ FML_USED_ON_EMBEDDER

#define FML_USED_ON_EMBEDDER

Definition at line 5 of file shell_unittests.cc.