mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-27 09:21:28 +00:00
add flags
Signed-off-by: jerry <sijunjie@huawei.com>
This commit is contained in:
parent
90ee01c48d
commit
5201e136c7
@ -35,7 +35,10 @@ public:
|
||||
MOCK_METHOD4(SendRequest, int(uint32_t, MessageParcel &, MessageParcel &, MessageOption &));
|
||||
MOCK_METHOD2(StartAbility, int(const Want &, int));
|
||||
MOCK_METHOD3(TerminateAbility, int(const sptr<IRemoteObject> &, int, const Want *));
|
||||
MOCK_METHOD1(MinimizeAbility, int(const sptr<IRemoteObject> &token, bool fromUser));
|
||||
virtual int MinimizeAbility(const sptr<IRemoteObject> &token, bool fromUser = false) override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
MOCK_METHOD3(ConnectAbility, int(const Want &, const sptr<IAbilityConnection> &, const sptr<IRemoteObject> &));
|
||||
|
||||
MOCK_METHOD1(DisconnectAbility, int(const sptr<IAbilityConnection> &));
|
||||
|
@ -29,7 +29,10 @@ public:
|
||||
int32_t userId, int requestCode));
|
||||
MOCK_METHOD2(TerminateAbilityByCaller, int(const sptr<IRemoteObject> &callerToken, int requestCode));
|
||||
MOCK_METHOD3(TerminateAbility, int(const sptr<IRemoteObject> &token, int resultCode, const Want *resultWant));
|
||||
MOCK_METHOD1(MinimizeAbility, int(const sptr<IRemoteObject> &token, bool fromUser));
|
||||
virtual int MinimizeAbility(const sptr<IRemoteObject> &token, bool fromUser = false) override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
MOCK_METHOD4(ConnectAbility, int(const Want &want, const sptr<IAbilityConnection> &connect,
|
||||
const sptr<IRemoteObject> &callerToken, int32_t userId));
|
||||
MOCK_METHOD1(DisconnectAbility, int(const sptr<IAbilityConnection> &connect));
|
||||
|
@ -46,7 +46,10 @@ public:
|
||||
MOCK_METHOD4(StartAbility, int(const Want &want, const sptr<IRemoteObject> &callerToken,
|
||||
int32_t userId, int requestCode));
|
||||
MOCK_METHOD3(TerminateAbility, int(const sptr<IRemoteObject> &token, int resultCode, const Want *resultWant));
|
||||
MOCK_METHOD1(MinimizeAbility, int(const sptr<IRemoteObject> &token, bool fromUser = false));
|
||||
virtual int MinimizeAbility(const sptr<IRemoteObject> &token, bool fromUser = false) override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
MOCK_METHOD4(ConnectAbility, int(const Want &want, const sptr<IAbilityConnection> &connect,
|
||||
const sptr<IRemoteObject> &callerToken, int32_t userId));
|
||||
MOCK_METHOD1(DisconnectAbility, int(const sptr<IAbilityConnection> &connect));
|
||||
|
Loading…
Reference in New Issue
Block a user