• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __VTS_TESTCASES_SECURITY_POC_TARGET_POC_TEST_H__
18 #define __VTS_TESTCASES_SECURITY_POC_TARGET_POC_TEST_H__
19 
20 #include <map>
21 #include <string>
22 
23 /* define poc_test exit codes */
24 #define POC_TEST_PASS 0
25 #define POC_TEST_FAIL 1
26 #define POC_TEST_SKIP 2
27 
28 typedef enum {
29   NEXUS_5,
30   NEXUS_5X,
31   NEXUS_6,
32   NEXUS_6P,
33   PIXEL,
34   PIXEL_XL,
35   OTHER
36 } DeviceModel;
37 
38 typedef struct {
39   DeviceModel device_model;
40   std::map<std::string, std::string> params;
41 } VtsHostInput;
42 
43 extern VtsHostInput ParseVtsHostFlags(int argc, char *argv[]);
44 
45 #endif  // __VTS_TESTCASES_SECURITY_POC_TARGET_POC_TEST_H__
46