mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
27 lines
548 B
C
27 lines
548 B
C
|
/*
|
||
|
* Copyright (c) 2023, Martin Janiczek <martin@janiczek.cz>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
namespace Test {
|
||
|
|
||
|
// TestResult signals to the TestSuite how the TestCase execution went.
|
||
|
enum class TestResult {
|
||
|
NotRun,
|
||
|
|
||
|
// Test fn ran to completion without setting any of the below flags
|
||
|
Passed,
|
||
|
|
||
|
// Didn't get through EXPECT(...).
|
||
|
Failed,
|
||
|
};
|
||
|
|
||
|
// Used eg. to signal we've ran out of prerecorded random bits.
|
||
|
// Defined in TestSuite.cpp
|
||
|
void set_current_test_result(TestResult);
|
||
|
|
||
|
} // namespace Test
|