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 const RSParameterParse& Instance();
31     static void Parse(int argc, char **argv);
32 
33     std::string imageSavePath = "/data/local/graphic_test/";
34     int testCaseWaitTime = 1000; //ms
35     int surfaceCaptureWaitTime = 1000; //ms
36     int manualTestWaitTime = 1500; //ms
37     std::unordered_set<RSGraphicTestType> filterTestTypes = {};
38     RSGraphicTestMode runTestMode = RSGraphicTestMode::ALL;
39     int32_t vsyncRate = 1;
40 };
41 
42 } // namespace Rosen
43 } // namespace OHOS
44 
45 #endif // RS_PARAMETER_PARSE_H
46