import <OCMock/OCMock.h>import "flutter/shell/platform/darwin/macos/framework/Source/FlutterMutatorView.h"import "flutter/shell/platform/darwin/macos/framework/Source/FlutterView.h"#include "third_party/googletest/googletest/include/gtest/gtest.h"import "flutter/shell/platform/darwin/macos/framework/Source/NSView+ClipsToBounds.h"Go to the source code of this file.
Classes | |
| category | FlutterMutatorView(Private) |
| class | FlutterCursorCoordinatorTest |
Functions | |
| TEST (FlutterMutatorViewTest, BasicFrameIsCorrect) | |
| TEST (FlutterMutatorViewTest, ClipsToBounds) | |
| TEST (FlutterMutatorViewTest, TransformedFrameIsCorrect) | |
| TEST (FlutterMutatorViewTest, FrameWithLooseClipIsCorrect) | |
| TEST (FlutterMutatorViewTest, FrameWithTightClipIsCorrect) | |
| TEST (FlutterMutatorViewTest, FrameWithTightClipAndTransformIsCorrect) | |
| TEST (FlutterMutatorViewTest, RoundRectClipsToSimpleRectangle) | |
| TEST (FlutterMutatorViewTest, ViewsSetIsFlipped) | |
| TEST (FlutterMutatorViewTest, RectsClipsToPathWhenRotated) | |
| TEST (FlutterMutatorViewTest, RoundRectClipsToPath) | |
| TEST (FlutterMutatorViewTest, PathClipViewsAreAddedAndRemoved) | |
| TEST (FlutterMutatorViewTest, HitTestIgnoreRegion) | |
| TEST (FlutterMutatorViewTest, ReparentingPlatformView) | |
| TEST (FlutterMutatorViewTest, CursorCoordinator) | |
Variables | |
| static constexpr float | kMaxErr = 1e-10 |
| TEST | ( | FlutterMutatorViewTest | , |
| BasicFrameIsCorrect | |||
| ) |
Definition at line 63 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeTransformation, FlutterMutatorView::platformView, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| ClipsToBounds | |||
| ) |
Definition at line 90 of file FlutterMutatorViewTest.mm.
| TEST | ( | FlutterMutatorViewTest | , |
| CursorCoordinator | |||
| ) |
Definition at line 730 of file FlutterMutatorViewTest.mm.
| TEST | ( | FlutterMutatorViewTest | , |
| FrameWithLooseClipIsCorrect | |||
| ) |
Definition at line 144 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRect, kFlutterPlatformViewMutationTypeTransformation, FlutterMutatorView::platformView, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| FrameWithTightClipAndTransformIsCorrect | |||
| ) |
Definition at line 208 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRect, kFlutterPlatformViewMutationTypeTransformation, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| FrameWithTightClipIsCorrect | |||
| ) |
Definition at line 173 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRect, kFlutterPlatformViewMutationTypeTransformation, FlutterMutatorView::platformView, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| HitTestIgnoreRegion | |||
| ) |
Definition at line 538 of file FlutterMutatorViewTest.mm.
References FlutterMutatorView::addHitTestIgnoreRegion:, and FlutterMutatorView::resetHitTestRegion.
| TEST | ( | FlutterMutatorViewTest | , |
| PathClipViewsAreAddedAndRemoved | |||
| ) |
Definition at line 415 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRoundedRect, kFlutterPlatformViewMutationTypeTransformation, FlutterRoundedRect::rect, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| RectsClipsToPathWhenRotated | |||
| ) |
Definition at line 340 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRect, kFlutterPlatformViewMutationTypeTransformation, kMaxErr, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| ReparentingPlatformView | |||
| ) |
Definition at line 565 of file FlutterMutatorViewTest.mm.
| TEST | ( | FlutterMutatorViewTest | , |
| RoundRectClipsToPath | |||
| ) |
Definition at line 376 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRoundedRect, kFlutterPlatformViewMutationTypeTransformation, FlutterRoundedRect::rect, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| RoundRectClipsToSimpleRectangle | |||
| ) |
Definition at line 264 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRoundedRect, kFlutterPlatformViewMutationTypeTransformation, FlutterRoundedRect::rect, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| TransformedFrameIsCorrect | |||
| ) |
Definition at line 96 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeTransformation, and FlutterTransformation::scaleX.
| TEST | ( | FlutterMutatorViewTest | , |
| ViewsSetIsFlipped | |||
| ) |
Definition at line 304 of file FlutterMutatorViewTest.mm.
References kFlutterPlatformViewMutationTypeClipRoundedRect, kFlutterPlatformViewMutationTypeTransformation, FlutterRoundedRect::rect, and FlutterTransformation::scaleX.
|
staticconstexpr |
Definition at line 20 of file FlutterMutatorViewTest.mm.
Referenced by TEST().