xref: /aosp_15_r20/external/skia/tests/CtsEnforcement.cpp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2022 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "tests/CtsEnforcement.h"
9 
eval(int apiLevel) const10 CtsEnforcement::RunMode CtsEnforcement::eval(int apiLevel) const {
11     if (apiLevel >= fStrictVersion) {
12         return RunMode::kRunStrict;
13     } else if (apiLevel >= fWorkaroundsVersion) {
14         return RunMode::kRunWithWorkarounds;
15     }
16     return RunMode::kSkip;
17 }
18