blob: 9edcd6d9b6979adc2ef68ebe47747c82ac3fc2bf [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
Tomasz Wasilczykbb07b982023-10-11 21:25:36 +000017#pragma clang diagnostic push
18#pragma clang diagnostic ignored "-Wpragma-once-outside-header"
Stephen Craned58bce02020-07-07 12:26:02 -070019#pragma once
Tomasz Wasilczykbb07b982023-10-11 21:25:36 +000020#pragma clang diagnostic pop
Stephen Craned58bce02020-07-07 12:26:02 -070021
22#include <binder/IBinder.h>
23
24using namespace android;
25
26enum 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
42extern const int8_t TESTDATA_I8[4];
43extern const uint8_t TESTDATA_U8[4];
44extern const char16_t TESTDATA_CHARS[4];
45extern const int32_t TESTDATA_I32[4];
46extern const int64_t TESTDATA_I64[4];
47extern const uint64_t TESTDATA_U64[4];
48extern const float TESTDATA_FLOAT[4];
49extern const double TESTDATA_DOUBLE[4];
50extern const bool TESTDATA_BOOL[4];
51extern const char* const TESTDATA_STRS[4];