#include <sstream>#include "flutter/fml/logging.h"#include "flutter/shell/platform/embedder/embedder.h"#include "flutter/shell/platform/embedder/embedder_engine.h"#include "flutter/testing/assertions.h"#include "gtest/gtest.h"#include "third_party/skia/include/core/SkPoint.h"#include "third_party/skia/include/core/SkSize.h"Go to the source code of this file.
|
inline |
Definition at line 552 of file embedder_assertions.h.
References FlutterTransformation::pers0, FlutterTransformation::pers1, FlutterTransformation::pers2, FlutterTransformation::scaleX, FlutterTransformation::scaleY, FlutterTransformation::skewX, FlutterTransformation::skewY, FlutterTransformation::transX, and FlutterTransformation::transY.
Referenced by flutter::testing::GetTotalMutationTransformationMatrix(), and flutter::testing::TEST_F().
|
inline |
Definition at line 275 of file embedder_assertions.h.
References kFlutterBackingStoreTypeMetal, kFlutterBackingStoreTypeOpenGL, kFlutterBackingStoreTypeSoftware, kFlutterBackingStoreTypeSoftware2, kFlutterBackingStoreTypeVulkan, and type.
Referenced by operator<<().
|
inline |
Definition at line 264 of file embedder_assertions.h.
References kFlutterLayerContentTypeBackingStore, kFlutterLayerContentTypePlatformView, and type.
Referenced by operator<<().
|
inline |
Definition at line 382 of file embedder_assertions.h.
References kFlutterOpenGLTargetTypeFramebuffer, kFlutterOpenGLTargetTypeSurface, kFlutterOpenGLTargetTypeTexture, and type.
Referenced by operator<<().
|
inline |
Definition at line 330 of file embedder_assertions.h.
References kFlutterPlatformViewMutationTypeClipRect, kFlutterPlatformViewMutationTypeClipRoundedRect, kFlutterPlatformViewMutationTypeOpacity, kFlutterPlatformViewMutationTypeTransformation, and type.
Referenced by operator<<().
|
inline |
Definition at line 516 of file embedder_assertions.h.
References x, FlutterPoint::x, FlutterPoint::y, and y.
Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), and flutter::testing::TEST_P().
|
inline |
Definition at line 576 of file embedder_assertions.h.
References FlutterRect::bottom, impeller::TRect< T >::GetBottom(), impeller::TRect< T >::GetLeft(), impeller::TRect< T >::GetRight(), impeller::TRect< T >::GetTop(), FlutterRect::left, FlutterRect::right, and FlutterRect::top.
|
inline |
Definition at line 567 of file embedder_assertions.h.
References FlutterRect::bottom, FlutterRect::left, FlutterRect::right, and FlutterRect::top.
Referenced by FlutterRoundedRectMake(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_P().
|
inline |
Definition at line 585 of file embedder_assertions.h.
References FlutterRect::bottom, FlutterRect::left, FlutterRect::right, and FlutterRect::top.
Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), and flutter::testing::TEST_P().
|
inline |
Definition at line 598 of file embedder_assertions.h.
References FlutterRectMake(), FlutterSizeMake(), FlutterRoundedRect::lower_left_corner_radius, FlutterRoundedRect::lower_right_corner_radius, FlutterRoundedRect::rect, FlutterRoundedRect::upper_left_corner_radius, and FlutterRoundedRect::upper_right_corner_radius.
Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_P().
|
inline |
Definition at line 530 of file embedder_assertions.h.
|
inline |
Definition at line 523 of file embedder_assertions.h.
Referenced by FlutterRoundedRectMake(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_P(), flutter::testing::TEST_P(), and flutter::testing::TEST_P().
|
inline |
Definition at line 395 of file embedder_assertions.h.
References FML_LOG, kFlutterSoftwarePixelFormatBGRA8888, kFlutterSoftwarePixelFormatGray8, kFlutterSoftwarePixelFormatNative32, kFlutterSoftwarePixelFormatRGB565, kFlutterSoftwarePixelFormatRGBA4444, kFlutterSoftwarePixelFormatRGBA8888, and kFlutterSoftwarePixelFormatRGBX8888.
Referenced by operator<<().
|
inline |
Definition at line 537 of file embedder_assertions.h.
References impeller::Matrix::m, FlutterTransformation::pers0, FlutterTransformation::pers1, FlutterTransformation::pers2, FlutterTransformation::scaleX, FlutterTransformation::scaleY, FlutterTransformation::skewX, FlutterTransformation::skewY, FlutterTransformation::transX, and FlutterTransformation::transY.
Referenced by flutter::testing::EmbedderTestContext::GetRootSurfaceTransformation(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
|
inline |
Definition at line 464 of file embedder_assertions.h.
References FlutterBackingStoreTypeToString(), kFlutterBackingStoreTypeMetal, kFlutterBackingStoreTypeOpenGL, kFlutterBackingStoreTypeSoftware, kFlutterBackingStoreTypeSoftware2, kFlutterBackingStoreTypeVulkan, FlutterBackingStore::metal, FlutterBackingStore::open_gl, FlutterBackingStore::software, FlutterBackingStore::software2, FlutterBackingStore::struct_size, FlutterBackingStore::type, FlutterBackingStore::user_data, and FlutterBackingStore::vulkan.
|
inline |
Definition at line 496 of file embedder_assertions.h.
References FlutterLayer::backing_store, FlutterLayerContentTypeToString(), kFlutterLayerContentTypeBackingStore, kFlutterLayerContentTypePlatformView, FlutterLayer::offset, FlutterLayer::platform_view, FlutterLayer::size, FlutterLayer::struct_size, and FlutterLayer::type.
|
inline |
Definition at line 444 of file embedder_assertions.h.
References FlutterMetalBackingStore::texture.
|
inline |
Definition at line 317 of file embedder_assertions.h.
References FlutterMetalTexture::texture, and FlutterMetalTexture::texture_id.
|
inline |
Definition at line 418 of file embedder_assertions.h.
References FlutterOpenGLTargetTypeToString(), FlutterOpenGLBackingStore::framebuffer, kFlutterOpenGLTargetTypeFramebuffer, kFlutterOpenGLTargetTypeSurface, kFlutterOpenGLTargetTypeTexture, FlutterOpenGLBackingStore::surface, FlutterOpenGLBackingStore::texture, and FlutterOpenGLBackingStore::type.
|
inline |
Definition at line 300 of file embedder_assertions.h.
References FlutterOpenGLFramebuffer::destruction_callback, FlutterOpenGLFramebuffer::name, FlutterOpenGLFramebuffer::target, and FlutterOpenGLFramebuffer::user_data.
|
inline |
Definition at line 308 of file embedder_assertions.h.
References FlutterOpenGLSurface::destruction_callback, FlutterOpenGLSurface::format, FlutterOpenGLSurface::make_current_callback, and FlutterOpenGLSurface::user_data.
|
inline |
Definition at line 292 of file embedder_assertions.h.
References FlutterOpenGLTexture::destruction_callback, FlutterOpenGLTexture::format, FlutterOpenGLTexture::name, FlutterOpenGLTexture::target, and FlutterOpenGLTexture::user_data.
|
inline |
Definition at line 362 of file embedder_assertions.h.
References i, and platform_view.
|
inline |
Definition at line 345 of file embedder_assertions.h.
References FlutterPlatformViewMutation::clip_rect, FlutterPlatformViewMutation::clip_rounded_rect, FlutterPlatformViewMutationTypeToString(), kFlutterPlatformViewMutationTypeClipRect, kFlutterPlatformViewMutationTypeClipRoundedRect, kFlutterPlatformViewMutationTypeOpacity, kFlutterPlatformViewMutationTypeTransformation, FlutterPlatformViewMutation::opacity, FlutterPlatformViewMutation::transformation, and FlutterPlatformViewMutation::type.
|
inline |
Definition at line 227 of file embedder_assertions.h.
References FlutterPoint::x, and FlutterPoint::y.
|
inline |
Definition at line 231 of file embedder_assertions.h.
References FlutterRect::bottom, FlutterRect::left, FlutterRect::right, and FlutterRect::top.
|
inline |
Definition at line 240 of file embedder_assertions.h.
References FlutterRoundedRect::lower_left_corner_radius, FlutterRoundedRect::lower_right_corner_radius, FlutterRoundedRect::rect, FlutterRoundedRect::upper_left_corner_radius, and FlutterRoundedRect::upper_right_corner_radius.
|
inline |
Definition at line 236 of file embedder_assertions.h.
|
inline |
Definition at line 436 of file embedder_assertions.h.
References FlutterSoftwareBackingStore::allocation, FlutterSoftwareBackingStore::destruction_callback, FlutterSoftwareBackingStore::height, FlutterSoftwareBackingStore::row_bytes, and FlutterSoftwareBackingStore::user_data.
|
inline |
Definition at line 454 of file embedder_assertions.h.
References FlutterSoftwareBackingStore2::allocation, FlutterSoftwareBackingStore2::destruction_callback, FlutterSoftwarePixelFormatToString(), FlutterSoftwareBackingStore2::height, FlutterSoftwareBackingStore2::pixel_format, FlutterSoftwareBackingStore2::row_bytes, and FlutterSoftwareBackingStore2::user_data.
|
inline |
Definition at line 250 of file embedder_assertions.h.
References FlutterTransformation::pers0, FlutterTransformation::pers1, FlutterTransformation::pers2, FlutterTransformation::scaleX, FlutterTransformation::scaleY, FlutterTransformation::skewX, FlutterTransformation::skewY, FlutterTransformation::transX, and FlutterTransformation::transY.
|
inline |
Definition at line 449 of file embedder_assertions.h.
References FlutterVulkanBackingStore::image.
|
inline |
Definition at line 324 of file embedder_assertions.h.
References FlutterVulkanImage::format, and FlutterVulkanImage::image.
|
inline |
Definition at line 147 of file embedder_assertions.h.
References FlutterBackingStore::did_update, kFlutterBackingStoreTypeMetal, kFlutterBackingStoreTypeOpenGL, kFlutterBackingStoreTypeSoftware, kFlutterBackingStoreTypeSoftware2, kFlutterBackingStoreTypeVulkan, FlutterBackingStore::metal, FlutterBackingStore::open_gl, FlutterBackingStore::software, FlutterBackingStore::software2, FlutterBackingStore::struct_size, FlutterBackingStore::type, FlutterBackingStore::user_data, and FlutterBackingStore::vulkan.
|
inline |
Definition at line 142 of file embedder_assertions.h.
References FlutterBackingStorePresentInfo::paint_region, and FlutterBackingStorePresentInfo::struct_size.
|
inline |
Definition at line 206 of file embedder_assertions.h.
References FlutterLayer::backing_store, FlutterLayer::backing_store_present_info, kFlutterLayerContentTypeBackingStore, kFlutterLayerContentTypePlatformView, FlutterLayer::offset, FlutterLayer::platform_view, FlutterLayer::size, FlutterLayer::struct_size, and FlutterLayer::type.
|
inline |
Definition at line 92 of file embedder_assertions.h.
References FlutterMetalBackingStore::texture.
|
inline |
Definition at line 77 of file embedder_assertions.h.
References FlutterMetalTexture::texture, and FlutterMetalTexture::texture_id.
|
inline |
Definition at line 97 of file embedder_assertions.h.
References FlutterOpenGLBackingStore::framebuffer, kFlutterOpenGLTargetTypeFramebuffer, kFlutterOpenGLTargetTypeSurface, kFlutterOpenGLTargetTypeTexture, FlutterOpenGLBackingStore::surface, FlutterOpenGLBackingStore::texture, and FlutterOpenGLBackingStore::type.
|
inline |
Definition at line 63 of file embedder_assertions.h.
References FlutterOpenGLFramebuffer::destruction_callback, FlutterOpenGLFramebuffer::name, FlutterOpenGLFramebuffer::target, and FlutterOpenGLFramebuffer::user_data.
|
inline |
Definition at line 70 of file embedder_assertions.h.
References FlutterOpenGLSurface::destruction_callback, FlutterOpenGLSurface::format, FlutterOpenGLSurface::make_current_callback, and FlutterOpenGLSurface::user_data.
|
inline |
Definition at line 56 of file embedder_assertions.h.
References FlutterOpenGLTexture::destruction_callback, FlutterOpenGLTexture::format, FlutterOpenGLTexture::name, FlutterOpenGLTexture::target, and FlutterOpenGLTexture::user_data.
|
inline |
Definition at line 190 of file embedder_assertions.h.
References i, FlutterPlatformView::identifier, FlutterPlatformView::mutations, FlutterPlatformView::mutations_count, and FlutterPlatformView::struct_size.
|
inline |
Definition at line 170 of file embedder_assertions.h.
References FlutterPlatformViewMutation::clip_rect, FlutterPlatformViewMutation::clip_rounded_rect, kFlutterPlatformViewMutationTypeClipRect, kFlutterPlatformViewMutationTypeClipRoundedRect, kFlutterPlatformViewMutationTypeOpacity, kFlutterPlatformViewMutationTypeTransformation, flutter::testing::NumberNear(), FlutterPlatformViewMutation::opacity, FlutterPlatformViewMutation::transformation, and FlutterPlatformViewMutation::type.
|
inline |
Definition at line 23 of file embedder_assertions.h.
References flutter::testing::NumberNear(), FlutterPoint::x, and FlutterPoint::y.
|
inline |
Definition at line 28 of file embedder_assertions.h.
References FlutterRect::bottom, FlutterRect::left, flutter::testing::NumberNear(), FlutterRect::right, and FlutterRect::top.
|
inline |
Definition at line 130 of file embedder_assertions.h.
References i, FlutterRegion::rects, FlutterRegion::rects_count, and FlutterRegion::struct_size.
|
inline |
Definition at line 40 of file embedder_assertions.h.
References FlutterRoundedRect::lower_left_corner_radius, FlutterRoundedRect::lower_right_corner_radius, FlutterRoundedRect::rect, FlutterRoundedRect::upper_left_corner_radius, and FlutterRoundedRect::upper_right_corner_radius.
|
inline |
Definition at line 35 of file embedder_assertions.h.
References FlutterSize::height, flutter::testing::NumberNear(), and FlutterSize::width.
|
inline |
Definition at line 115 of file embedder_assertions.h.
References FlutterSoftwareBackingStore::allocation, FlutterSoftwareBackingStore::destruction_callback, FlutterSoftwareBackingStore::height, FlutterSoftwareBackingStore::row_bytes, and FlutterSoftwareBackingStore::user_data.
|
inline |
Definition at line 122 of file embedder_assertions.h.
References FlutterSoftwareBackingStore2::allocation, FlutterSoftwareBackingStore2::destruction_callback, FlutterSoftwareBackingStore2::height, FlutterSoftwareBackingStore2::pixel_format, FlutterSoftwareBackingStore2::row_bytes, and FlutterSoftwareBackingStore2::user_data.
|
inline |
Definition at line 49 of file embedder_assertions.h.
References FlutterTransformation::pers0, FlutterTransformation::pers1, FlutterTransformation::pers2, FlutterTransformation::scaleX, FlutterTransformation::scaleY, FlutterTransformation::skewX, FlutterTransformation::skewY, FlutterTransformation::transX, and FlutterTransformation::transY.
|
inline |
Definition at line 87 of file embedder_assertions.h.
References FlutterVulkanBackingStore::image.
|
inline |
Definition at line 82 of file embedder_assertions.h.
References FlutterVulkanImage::format, and FlutterVulkanImage::image.
|
inline |
Definition at line 594 of file embedder_assertions.h.
References FlutterRect::bottom, FlutterRect::left, FlutterRect::right, and FlutterRect::top.
Referenced by flutter::testing::TEST_F().
|
inline |
Definition at line 563 of file embedder_assertions.h.
References engine.
Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().