Flutter Engine
 
Loading...
Searching...
No Matches
toolkit_android_unittests.cc File Reference

Go to the source code of this file.

Namespaces

namespace  impeller
 
namespace  impeller::android
 
namespace  impeller::android::testing
 

Macros

#define DISABLE_ANDROID_PROC(name)
 

Functions

 impeller::android::testing::TEST (ToolkitAndroidTest, CanCreateProcTable)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, GuardsAgainstZeroSizedDescriptors)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, CanCreateHardwareBuffer)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, CanGetHardwareBufferIDs)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, HardwareBufferNullIDIfAPIUnavailable)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, CanDescribeHardwareBufferHandles)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, CanApplySurfaceTransaction)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, SurfacControlsAreAvailable)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, ChoreographerIsAvailable)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, CanPostAndNotWaitForFrameCallbacks)
 
 impeller::android::testing::TEST (ToolkitAndroidTest, CanPostAndWaitForFrameCallbacks)
 

Macro Definition Documentation

◆ DISABLE_ANDROID_PROC

#define DISABLE_ANDROID_PROC (   name)
Value:
struct Disable##name { \
Disable##name() { \
real_proc = GetMutableProcTable().name.proc; \
GetMutableProcTable().name.proc = nullptr; \
} \
~Disable##name() { \
GetMutableProcTable().name.proc = real_proc; \
} \
decltype(name)* real_proc; \
} disable##name;
const char * name
Definition fuchsia.cc:49

Definition at line 15 of file toolkit_android_unittests.cc.

16 { \
17 Disable##name() { \
18 real_proc = GetMutableProcTable().name.proc; \
19 GetMutableProcTable().name.proc = nullptr; \
20 } \
21 ~Disable##name() { \
22 GetMutableProcTable().name.proc = real_proc; \
23 } \
24 decltype(name)* real_proc; \
25 } disable##name;
ProcTable & GetMutableProcTable()
Definition proc_table.cc:18