Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
dl_op_spy_unittests.cc File Reference
#include "flutter/display_list/display_list.h"
#include "flutter/display_list/dl_builder.h"
#include "flutter/display_list/testing/dl_test_snippets.h"
#include "flutter/shell/common/dl_op_spy.h"
#include "flutter/testing/testing.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkFont.h"
#include "third_party/skia/include/core/SkRSXform.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Macros

#define ASSERT_DID_DRAW(spy, dl)
 
#define ASSERT_NO_DRAW(spy, dl)
 

Functions

 flutter::testing::TEST (DlOpSpy, DidDrawIsFalseByDefault)
 
 flutter::testing::TEST (DlOpSpy, EmptyDisplayList)
 
 flutter::testing::TEST (DlOpSpy, SetColor)
 
 flutter::testing::TEST (DlOpSpy, SetColorSource)
 
 flutter::testing::TEST (DlOpSpy, DrawColor)
 
 flutter::testing::TEST (DlOpSpy, DrawPaint)
 
 flutter::testing::TEST (DlOpSpy, DrawLine)
 
 flutter::testing::TEST (DlOpSpy, DrawDashedLine)
 
 flutter::testing::TEST (DlOpSpy, DrawRect)
 
 flutter::testing::TEST (DlOpSpy, DrawOval)
 
 flutter::testing::TEST (DlOpSpy, DrawCircle)
 
 flutter::testing::TEST (DlOpSpy, DrawRRect)
 
 flutter::testing::TEST (DlOpSpy, DrawPath)
 
 flutter::testing::TEST (DlOpSpy, DrawArc)
 
 flutter::testing::TEST (DlOpSpy, DrawPoints)
 
 flutter::testing::TEST (DlOpSpy, DrawVertices)
 
 flutter::testing::TEST (DlOpSpy, Images)
 
 flutter::testing::TEST (DlOpSpy, DrawDisplayList)
 
 flutter::testing::TEST (DlOpSpy, DrawTextBlob)
 
 flutter::testing::TEST (DlOpSpy, DrawShadow)
 

Macro Definition Documentation

◆ ASSERT_DID_DRAW

#define ASSERT_DID_DRAW (   spy,
  dl 
)
Value:
do { \
ASSERT_TRUE(spy.did_draw()); \
ASSERT_TRUE(dl->modifies_transparent_black()); \
} while (0)

Definition at line 21 of file dl_op_spy_unittests.cc.

◆ ASSERT_NO_DRAW

#define ASSERT_NO_DRAW (   spy,
  dl 
)
Value:
do { \
ASSERT_FALSE(spy.did_draw()); \
ASSERT_FALSE(dl->modifies_transparent_black()); \
} while (0)

Definition at line 27 of file dl_op_spy_unittests.cc.