blob: 0041608ae0133655831a482d04579d28ce160259 [file] [log] [blame]
Stephen Craned58bce02020-07-07 12:26:02 -07001/*
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 once
18
19#include <binder/IBinder.h>
20
21using namespace android;
22
23enum Transaction {
24 TEST_BOOL = IBinder::FIRST_CALL_TRANSACTION,
25 TEST_BYTE,
26 TEST_U16,
27 TEST_I32,
28 TEST_I64,
29 TEST_U64,
30 TEST_F32,
31 TEST_F64,
32 TEST_STRING,
33 TEST_FILE_DESCRIPTOR,
34 TEST_IBINDER,
35 TEST_STATUS,
36 TEST_FAIL,
37};
38
39extern const int8_t TESTDATA_I8[4];
40extern const uint8_t TESTDATA_U8[4];
41extern const char16_t TESTDATA_CHARS[4];
42extern const int32_t TESTDATA_I32[4];
43extern const int64_t TESTDATA_I64[4];
44extern const uint64_t TESTDATA_U64[4];
45extern const float TESTDATA_FLOAT[4];
46extern const double TESTDATA_DOUBLE[4];
47extern const bool TESTDATA_BOOL[4];
48extern const char* const TESTDATA_STRS[4];