Flutter Engine
The Flutter Engine
|
#include "include/core/SkString.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkNoncopyable.h"
#include "include/private/base/SkTArray.h"
#include "src/core/SkTraceEvent.h"
#include "tests/CtsEnforcement.h"
#include "tests/TestType.h"
#include "tools/Registry.h"
#include <atomic>
#include <cstdint>
#include <string>
Go to the source code of this file.
Classes | |
struct | skiatest::Failure |
class | skiatest::Reporter |
class | skiatest::ReporterContext |
struct | skiatest::Test |
class | skiatest::Timer |
Namespaces | |
namespace | sk_gpu_test |
namespace | skgpu |
namespace | skgpu::graphite |
namespace | skiatest |
namespace | skiatest::graphite |
Macros | |
#define | REPORT_FAILURE(reporter, cond, message) reporter->reportFailedWithContext(skiatest::Failure(__FILE__, __LINE__, cond, message)) |
#define | REPORTER_ASSERT(r, cond, ...) |
#define | ERRORF(r, ...) |
#define | INFOF(REPORTER, ...) |
#define | DEF_CONDITIONAL_TEST(name, reporter, condition) |
#define | DEF_TEST(name, reporter) DEF_CONDITIONAL_TEST(name, reporter, true) |
#define | DEF_TEST_DISABLED(name, reporter) DEF_CONDITIONAL_TEST(name, reporter, false) |
#define | UNIX_ONLY_TEST DEF_TEST_DISABLED |
#define | DEF_SERIAL_TEST(name, reporter) |
#define | DEF_GRAPHITE_TEST(name, reporter, ctsEnforcement) |
#define | DEF_CONDITIONAL_GRAPHITE_TEST_FOR_CONTEXTS( name, context_filter, reporter, graphite_ctx, test_ctx, opt_filter, cond, ctsEnforcement) |
#define | DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS(name, reporter, graphite_ctx, test_ctx, cond, ctsEnforcement) |
#define | DEF_CONDITIONAL_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS( name, reporter, graphite_context, test_context, cond, ctsEnforcement) |
#define | DEF_GRAPHITE_TEST_FOR_CONTEXTS(name, context_filter, reporter, graphite_ctx, test_ctx, ctsEnforcement) |
#define | DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS(name, reporter, graphite_ctx, ctsEnforcement) |
#define | DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS(name, reporter, graphite_context, ctsEnforcement) |
#define | DEF_GRAPHITE_TEST_FOR_VULKAN_CONTEXT(name, reporter, graphite_context, ctsEnforcement) |
#define | DEF_GRAPHITE_TEST_FOR_METAL_CONTEXT(name, reporter, graphite_context, test_context) |
#define | DEF_GRAPHITE_TEST_FOR_DAWN_CONTEXT(name, reporter, graphite_context, test_context) |
#define | DEF_GANESH_TEST(name, reporter, options, ctsEnforcement) |
#define | DEF_CONDITIONAL_GANESH_TEST_FOR_CONTEXTS( name, context_filter, reporter, context_info, options_filter, condition, ctsEnforcement) |
#define | DEF_CONDITIONAL_GANESH_TEST_FOR_ALL_CONTEXTS( name, reporter, context_info, condition, ctsEnforcement) |
#define | DEF_CONDITIONAL_GANESH_TEST_FOR_RENDERING_CONTEXTS( name, reporter, context_info, condition, ctsEnforcement) |
#define | DEF_GANESH_TEST_FOR_CONTEXTS( name, context_filter, reporter, context_info, options_filter, ctsEnforcement) |
#define | DEF_GANESH_TEST_FOR_ALL_CONTEXTS(name, reporter, context_info, ctsEnforcement) DEF_GANESH_TEST_FOR_CONTEXTS(name, nullptr, reporter, context_info, nullptr, ctsEnforcement) |
#define | DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(name, reporter, context_info, ctsEnforcement) |
#define | DEF_GANESH_TEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info, ctsEnforcement) |
#define | DEF_GANESH_TEST_FOR_GL_CONTEXT(name, reporter, context_info, ctsEnforcement) |
#define | DEF_GANESH_TEST_FOR_MOCK_CONTEXT(name, reporter, context_info) |
#define | DEF_GANESH_TEST_FOR_VULKAN_CONTEXT(name, reporter, context_info, ctsEnforcement) |
#define | DEF_GANESH_TEST_FOR_METAL_CONTEXT(name, reporter, context_info) |
#define | DEF_GANESH_TEST_FOR_D3D_CONTEXT(name, reporter, context_info) |
#define | DEF_GANESH_TEST_FOR_DAWN_CONTEXT(name, reporter, context_info) |
#define | REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) |
Typedefs | |
using | skiatest::CPUTestProc = void(*)(Reporter *) |
using | skiatest::GaneshTestProc = void(*)(Reporter *, const GrContextOptions &) |
using | skiatest::GaneshContextOptionsProc = void(*)(GrContextOptions *) |
using | skiatest::GraphiteTestProc = void(*)(Reporter *, const graphite::TestOptions &) |
using | skiatest::GraphiteContextOptionsProc = void(*)(skgpu::graphite::ContextOptions *) |
using | skiatest::TestRegistry = sk_tools::Registry< Test > |
using | skiatest::GpuContextType = nullptr_t |
typedef void | skiatest::GrContextTestFn(Reporter *, const sk_gpu_test::ContextInfo &) |
typedef bool | skiatest::ContextTypeFilterFn(GpuContextType) |
Functions | |
SkString | skiatest::GetTmpDir () |
void | skiatest::RunWithGaneshTestContexts (GrContextTestFn *testFn, ContextTypeFilterFn *filter, Reporter *reporter, const GrContextOptions &options) |
bool | skiatest::IsGLContextType (GpuContextType) |
bool | skiatest::IsVulkanContextType (GpuContextType) |
bool | skiatest::IsMetalContextType (GpuContextType) |
bool | skiatest::IsDawnContextType (GpuContextType) |
bool | skiatest::IsDirect3DContextType (GpuContextType) |
bool | skiatest::IsMockContextType (GpuContextType) |
#define DEF_CONDITIONAL_GANESH_TEST_FOR_ALL_CONTEXTS | ( | name, | |
reporter, | |||
context_info, | |||
condition, | |||
ctsEnforcement | |||
) |
Definition at line 411 of file Test.h.
#define DEF_CONDITIONAL_GANESH_TEST_FOR_CONTEXTS | ( | name, | |
context_filter, | |||
reporter, | |||
context_info, | |||
options_filter, | |||
condition, | |||
ctsEnforcement | |||
) |
Definition at line 399 of file Test.h.
#define DEF_CONDITIONAL_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | name, | |
reporter, | |||
context_info, | |||
condition, | |||
ctsEnforcement | |||
) |
#define DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS | ( | name, | |
reporter, | |||
graphite_ctx, | |||
test_ctx, | |||
cond, | |||
ctsEnforcement | |||
) |
#define DEF_CONDITIONAL_GRAPHITE_TEST_FOR_CONTEXTS | ( | name, | |
context_filter, | |||
reporter, | |||
graphite_ctx, | |||
test_ctx, | |||
opt_filter, | |||
cond, | |||
ctsEnforcement | |||
) |
Definition at line 337 of file Test.h.
#define DEF_CONDITIONAL_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS | ( | name, | |
reporter, | |||
graphite_context, | |||
test_context, | |||
cond, | |||
ctsEnforcement | |||
) |
#define DEF_GANESH_TEST_FOR_ALL_CONTEXTS | ( | name, | |
reporter, | |||
context_info, | |||
ctsEnforcement | |||
) | DEF_GANESH_TEST_FOR_CONTEXTS(name, nullptr, reporter, context_info, nullptr, ctsEnforcement) |
#define DEF_GANESH_TEST_FOR_CONTEXTS | ( | name, | |
context_filter, | |||
reporter, | |||
context_info, | |||
options_filter, | |||
ctsEnforcement | |||
) |
#define DEF_GRAPHITE_TEST_FOR_CONTEXTS | ( | name, | |
context_filter, | |||
reporter, | |||
graphite_ctx, | |||
test_ctx, | |||
ctsEnforcement | |||
) |
#define DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS | ( | name, | |
reporter, | |||
graphite_context, | |||
ctsEnforcement | |||
) |
#define DEF_TEST | ( | name, | |
reporter | |||
) | DEF_CONDITIONAL_TEST(name, reporter, true) |
#define DEF_TEST_DISABLED | ( | name, | |
reporter | |||
) | DEF_CONDITIONAL_TEST(name, reporter, false) |
#define ERRORF | ( | r, | |
... | |||
) |
#define INFOF | ( | REPORTER, | |
... | |||
) |
#define REPORT_FAILURE | ( | reporter, | |
cond, | |||
message | |||
) | reporter->reportFailedWithContext(skiatest::Failure(__FILE__, __LINE__, cond, message)) |
#define REPORTER_ASSERT | ( | r, | |
cond, | |||
... | |||
) |
Definition at line 286 of file Test.h.
#define REQUIRE_PDF_DOCUMENT | ( | TEST_NAME, | |
REPORTER | |||
) |
Definition at line 485 of file Test.h.
#define UNIX_ONLY_TEST DEF_TEST_DISABLED |