add flags

Signed-off-by: jerry <sijunjie@huawei.com>
This commit is contained in:
jerry 2022-02-10 09:36:35 +00:00
parent 90ee01c48d
commit 5201e136c7
3 changed files with 12 additions and 3 deletions

View File

@ -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> &));

View File

@ -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));

View File

@ -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));