1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef RS_PARAMETER_PARSE_H 17 #define RS_PARAMETER_PARSE_H 18 19 #include <string> 20 #include <unordered_set> 21 #include "rs_graphic_test_ext.h" 22 23 namespace OHOS { 24 namespace Rosen { 25 class RSParameterParse { 26 private: RSParameterParse()27 RSParameterParse() {} 28 29 public: 30 static RSParameterParse& Instance(); 31 static void Parse(int argc, char **argv); 32 void SetSkipCapture(bool isSkip); 33 34 std::string imageSavePath = "/data/local/graphic_test/"; 35 int testCaseWaitTime = 1000; //ms 36 int surfaceCaptureWaitTime = 1000; //ms 37 int manualTestWaitTime = 1500; //ms 38 std::unordered_set<RSGraphicTestType> filterTestTypes = {}; 39 RSGraphicTestMode runTestMode = RSGraphicTestMode::ALL; 40 int32_t vsyncRate = 1; 41 bool skipCapture_ = false; 42 }; 43 44 } // namespace Rosen 45 } // namespace OHOS 46 47 #endif // RS_PARAMETER_PARSE_H 48