1 /*
2  * Copyright (C) 2020 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 #pragma clang diagnostic push
18 #pragma clang diagnostic ignored "-Wpragma-once-outside-header"
19 #pragma once
20 #pragma clang diagnostic pop
21 
22 #include <binder/IBinder.h>
23 
24 using namespace android;
25 
26 enum Transaction {
27     TEST_BOOL = IBinder::FIRST_CALL_TRANSACTION,
28     TEST_BYTE,
29     TEST_U16,
30     TEST_I32,
31     TEST_I64,
32     TEST_U64,
33     TEST_F32,
34     TEST_F64,
35     TEST_STRING,
36     TEST_FILE_DESCRIPTOR,
37     TEST_IBINDER,
38     TEST_STATUS,
39     TEST_FAIL,
40 };
41 
42 extern const int8_t TESTDATA_I8[4];
43 extern const uint8_t TESTDATA_U8[4];
44 extern const char16_t TESTDATA_CHARS[4];
45 extern const int32_t TESTDATA_I32[4];
46 extern const int64_t TESTDATA_I64[4];
47 extern const uint64_t TESTDATA_U64[4];
48 extern const float TESTDATA_FLOAT[4];
49 extern const double TESTDATA_DOUBLE[4];
50 extern const bool TESTDATA_BOOL[4];
51 extern const char* const TESTDATA_STRS[4];
52