1 /*
2  * Copyright (c) 2021 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 TEST_MOCK_COMMON_AUDIO_ABILITY_INCLUDE_IF_AUDIO_ABILITY_H
17 #define TEST_MOCK_COMMON_AUDIO_ABILITY_INCLUDE_IF_AUDIO_ABILITY_H
18 
19 #include <string>
20 
21 #include "iremote_broker.h"
22 #include "iremote_object.h"
23 #include "iremote_stub.h"
24 #include "iremote_proxy.h"
25 
26 namespace OHOS {
27 class ITestAudioAbility : public IRemoteBroker {
28 public:
29 
30     virtual int AddVolume(int volume) = 0;
31     virtual int32_t ReduceVolume(int volume) = 0;
32     virtual int32_t TestRpcInt32(int32_t value) = 0;
33     virtual uint32_t TestRpcUInt32(uint32_t value) = 0;
34     virtual int64_t TestRpcInt64(int64_t value) = 0;
35     virtual uint64_t TestRpcUInt64(uint64_t value) = 0;
36     virtual float TestRpcFloat(float value) = 0;
37     virtual double TestRpcDouble(double value) = 0;
38     virtual const std::u16string TestRpcString16(const std::u16string& name) = 0;
39 
40 public:
41 
42     enum {
43     ADD_VOLUME = 1,
44     REDUCE_VOLUME,
45     TEST_RPCINT32,
46     TEST_RPCUINT32,
47     TEST_RPCINT64,
48     TEST_RPCUINT64,
49     TEST_RPCFLOAT,
50     TEST_RPCDOUBLE,
51     TEST_RPCSTRING16,
52     };
53 public:
54     DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.test.ITestAudioAbility");
55 };
56 }
57 #endif // TEST_MOCK_COMMON_AUDIO_ABILITY_INCLUDE_IF_AUDIO_ABILITY_H