blob: ec486befb89bea97dcc14fa3b592a63c6f126222 [file] [log] [blame]
/*
* Copyright 2022 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "tests/CtsEnforcement.h"
CtsEnforcement::RunMode CtsEnforcement::eval(int apiLevel) const {
if (apiLevel >= fStrictVersion) {
return RunMode::kRunStrict;
} else if (apiLevel >= fWorkaroundsVersion) {
return RunMode::kRunWithWorkarounds;
}
return RunMode::kSkip;
}