Flutter Engine
The Flutter Engine
|
#include <CtsEnforcement.h>
Public Types | |
enum | ApiLevel : int32_t { kNever = INT32_MAX , kApiLevel_T = 33 , kApiLevel_U = 34 , kApiLevel_V = 35 , kNextRelease = kApiLevel_V } |
enum class | RunMode { kSkip = 0 , kRunWithWorkarounds = 1 , kRunStrict = 2 } |
Public Member Functions | |
constexpr | CtsEnforcement (ApiLevel strictVersion) |
constexpr CtsEnforcement & | withWorkarounds (ApiLevel workaroundVersion) |
RunMode | eval (int apiLevel) const |
Determines how unit tests are enforced by CTS. Depending on the ApiLevel, a test will be run in one of 3 states: run without workarounds, run with workarounds or skipped.
Definition at line 20 of file CtsEnforcement.h.
enum CtsEnforcement::ApiLevel : int32_t |
Enumerator | |
---|---|
kNever | |
kApiLevel_T | |
kApiLevel_U | |
kApiLevel_V | |
kNextRelease |
Definition at line 22 of file CtsEnforcement.h.
|
strong |
Enumerator | |
---|---|
kSkip | |
kRunWithWorkarounds | |
kRunStrict |
Definition at line 59 of file CtsEnforcement.h.
|
inlineconstexpr |
Tests will run in strict (no workarounds) mode if the device API level is >= strictVersion
Definition at line 46 of file CtsEnforcement.h.
CtsEnforcement::RunMode CtsEnforcement::eval | ( | int | apiLevel | ) | const |
Definition at line 10 of file CtsEnforcement.cpp.
|
inlineconstexpr |
Test will run with workarounds if the device API level is >= workaroundVersion and < strictVersion
Definition at line 53 of file CtsEnforcement.h.