Home
last modified time | relevance | path

Searched refs:mock_ (Results 1 - 25 of 39) sorted by relevance

12

/foundation/ability/ability_runtime/test/unittest/ability_manager_collaborator_proxy_test/
H A Dability_manager_collaborator_proxy_test.cpp37 sptr<AbilityManagerCollaboratorStubMock> mock_; member in OHOS::AAFwk::AbilityManagerCollaboratorProxyTest
48 mock_ = new AbilityManagerCollaboratorStubMock(); in SetUp()
49 proxy_ = new AbilityManagerCollaboratorProxy(mock_); in SetUp()
62 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
64 .WillOnce(Invoke(mock_.GetRefPtr(), &AbilityManagerCollaboratorStubMock::InvokeSendRequest)); in HWTEST_F()
71 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_START_ABILITY), mock_->GetCode()); in HWTEST_F()
81 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
83 .WillOnce(Invoke(mock_.GetRefPtr(), &AbilityManagerCollaboratorStubMock::InvokeSendRequest)); in HWTEST_F()
87 EXPECT_EQ(static_cast<uint32_t>(IAbilityManagerCollaborator::NOTIFY_PRELOAD_ABILITY), mock_->GetCode()); in HWTEST_F()
97 EXPECT_CALL(*mock_, SendReques in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/ability_scheduler_proxy_test/
H A Dability_scheduler_proxy_test.cpp36 sptr<AbilitySchedulerMock> mock_{ nullptr };
49 mock_ = new AbilitySchedulerMock(); in SetUp()
50 abilitySchedulerProxy_ = new AbilitySchedulerProxy(mock_); in SetUp()
91 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
93 .WillOnce(Invoke(mock_.GetRefPtr(), &AbilitySchedulerMock::InvokeSendRequest)); in HWTEST_F()
99 EXPECT_EQ(IAbilityScheduler::SCHEDULE_ABILITY_TRANSACTION, mock_->code_); in HWTEST_F()
112 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
114 .WillOnce(Invoke(mock_.GetRefPtr(), &AbilitySchedulerMock::InvokeErrorSendRequest)); in HWTEST_F()
120 EXPECT_EQ(IAbilityScheduler::SCHEDULE_ABILITY_TRANSACTION, mock_->code_); in HWTEST_F()
133 EXPECT_CALL(*mock_, SendReques in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/ability_manager_proxy_test/
H A Dability_manager_proxy_test.cpp53 sptr<AbilityManagerStubMock> mock_{ nullptr };
65 mock_ = new AbilityManagerStubMock(); in SetUp()
66 proxy_ = std::make_shared<AbilityManagerProxy>(mock_); in SetUp()
79 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
81 .WillOnce(Invoke(mock_.GetRefPtr(), &AbilityManagerStubMock::InvokeSendRequest)); in HWTEST_F()
89 EXPECT_EQ(static_cast<uint32_t>(AbilityManagerInterfaceCode::DUMPSYS_STATE), mock_->code_); in HWTEST_F()
104 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
106 .WillOnce(Invoke(mock_.GetRefPtr(), &AbilityManagerStubMock::InvokeSendRequest)); in HWTEST_F()
110 EXPECT_EQ(static_cast<uint32_t>(AbilityManagerInterfaceCode::START_ABILITY), mock_->code_); in HWTEST_F()
124 EXPECT_CALL(*mock_, SendReques in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/remote_mission_listener_proxy_test/
H A Dremote_mission_listener_proxy_test.cpp36 sptr<RemoteMissionListenerStubMock> mock_ {nullptr};
47 mock_ = new RemoteMissionListenerStubMock(); in SetUp()
48 proxy_ = std::make_shared<RemoteMissionListenerProxy>(mock_); in SetUp()
61 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
63 .WillOnce(Invoke(mock_.GetRefPtr(), &RemoteMissionListenerStubMock::InvokeSendRequest)); in HWTEST_F()
66 EXPECT_EQ(IRemoteMissionListener::NOTIFY_MISSION_CHANGED, mock_->code_); in HWTEST_F()
79 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
81 .WillOnce(Invoke(mock_.GetRefPtr(), &RemoteMissionListenerStubMock::InvokeErrorSendRequest)); in HWTEST_F()
84 EXPECT_EQ(IRemoteMissionListener::NOTIFY_MISSION_CHANGED, mock_->code_); in HWTEST_F()
97 EXPECT_CALL(*mock_, SendReques in HWTEST_F()
[all...]
H A Dremote_on_listener_proxy_test.cpp36 sptr<RemoteOnListenerStubMock> mock_ {nullptr};
47 mock_ = new RemoteOnListenerStubMock(); in SetUp()
48 proxy_ = std::make_shared<RemoteOnListenerProxy>(mock_); in SetUp()
61 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
63 .WillOnce(Invoke(mock_.GetRefPtr(), &RemoteOnListenerStubMock::InvokeSendRequest)); in HWTEST_F()
70 EXPECT_EQ(IRemoteOnListener::ON_CALLBACK, mock_->code_); in HWTEST_F()
83 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
85 .WillOnce(Invoke(mock_.GetRefPtr(), &RemoteOnListenerStubMock::InvokeErrorSendRequest)); in HWTEST_F()
92 EXPECT_EQ(IRemoteOnListener::ON_CALLBACK, mock_->code_); in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_manager/ipc/test/
H A Dstorage_manager_proxy_test.cpp38 sptr<StorageManagerServiceMock> mock_ = nullptr; member in __anon8861::StorageManagerProxyTest
43 mock_ = new StorageManagerServiceMock(); in SetUp()
44 proxy_ = std::make_shared<StorageManagerProxy>(mock_); in SetUp()
59 ASSERT_TRUE(mock_ != nullptr) << "StorageManagerServiceMock failed"; in HWTEST_F()
60 EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) in HWTEST_F()
62 .WillOnce(testing::Invoke(mock_.GetRefPtr(), &StorageManagerServiceMock::InvokeSendRequest)); in HWTEST_F()
70 EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) in HWTEST_F()
90 ASSERT_TRUE(mock_ != nullptr) << "StorageManagerServiceMock failed"; in HWTEST_F()
91 EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) in HWTEST_F()
93 .WillOnce(testing::Invoke(mock_ in HWTEST_F()
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/ipc/test/
H A Dstorage_daemon_proxy_test.cpp41 sptr<StorageDaemonServiceMock> mock_ = nullptr; member in OHOS::StorageDaemon::StorageDaemonProxyTest
46 mock_ = new StorageDaemonServiceMock(); in SetUp()
47 proxy_ = std::make_shared<StorageDaemonProxy>(mock_); in SetUp()
60 EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) in HWTEST_F()
62 .WillOnce(testing::Invoke(mock_.GetRefPtr(), &StorageDaemonServiceMock::InvokeSendRequest)); in HWTEST_F()
67 ASSERT_TRUE(mock_ != nullptr); in HWTEST_F()
68 ASSERT_TRUE(static_cast<int32_t>(StorageDaemonInterfaceCode::SHUTDOWN) == mock_->code_); in HWTEST_F()
70 EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) in HWTEST_F()
88 EXPECT_CALL(*mock_, SendRequest(testing::_, testing::_, testing::_, testing::_)) in HWTEST_F()
90 .WillOnce(testing::Invoke(mock_ in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/app_debug_listener_proxy_test/
H A Dapp_debug_listener_proxy_test.cpp39 sptr<AppDebugListenerStubMock> mock_; member in OHOS::AppExecFwk::AppDebugListenerProxyTest
50 mock_ = new AppDebugListenerStubMock(); in SetUp()
51 proxy_ = std::make_shared<AppDebugListenerProxy>(mock_); in SetUp()
76 EXPECT_NE(mock_, nullptr); in HWTEST_F()
82 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
84 .WillOnce(Invoke(mock_.GetRefPtr(), &AppDebugListenerStubMock::InvokeSendRequest)); in HWTEST_F()
87 EXPECT_EQ(code, static_cast<uint32_t>(mock_->code_)); in HWTEST_F()
98 EXPECT_NE(mock_, nullptr); in HWTEST_F()
104 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
106 .WillOnce(Invoke(mock_ in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/want_receiver_proxy_test/
H A Dwant_receiver_proxy_test.cpp36 sptr<WantReceiverStubMock> mock_{ nullptr };
47 mock_ = new WantReceiverStubMock(); in SetUp()
48 proxy_ = std::make_shared<WantReceiverProxy>(mock_); in SetUp()
61 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
63 .WillOnce(Invoke(mock_.GetRefPtr(), &WantReceiverStubMock::InvokeSendRequest)); in HWTEST_F()
67 EXPECT_EQ(IWantReceiver::WANT_RECEIVER_SEND, mock_->code_); in HWTEST_F()
80 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
82 .WillOnce(Invoke(mock_.GetRefPtr(), &WantReceiverStubMock::InvokeSendRequest)); in HWTEST_F()
88 EXPECT_EQ(IWantReceiver::WANT_RECEIVER_PERFORM_RECEIVE, mock_->code_); in HWTEST_F()
/foundation/ability/ability_runtime/test/unittest/stop_user_callback_proxy_test/
H A Dstop_user_callback_proxy_test.cpp36 sptr<StopUserCallbackStubMock> mock_ {nullptr};
47 mock_ = new StopUserCallbackStubMock(); in SetUp()
48 proxy_ = std::make_shared<UserCallbackProxy>(mock_); in SetUp()
61 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
63 .WillOnce(Invoke(mock_.GetRefPtr(), &StopUserCallbackStubMock::InvokeSendRequest)); in HWTEST_F()
67 EXPECT_EQ(IUserCallback::UserCallbackCmd::ON_STOP_USER_DONE, mock_->code_); in HWTEST_F()
80 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
82 .WillOnce(Invoke(mock_.GetRefPtr(), &StopUserCallbackStubMock::InvokeErrorSendRequest)); in HWTEST_F()
86 EXPECT_EQ(IUserCallback::UserCallbackCmd::ON_STOP_USER_DONE, mock_->code_); in HWTEST_F()
/foundation/ability/ability_runtime/test/unittest/want_sender_proxy_test/
H A Dwant_sender_proxy_test.cpp37 sptr<WantSenderStubMock> mock_{ nullptr };
48 mock_ = new WantSenderStubMock(); in SetUp()
49 proxy_ = std::make_shared<WantSenderProxy>(mock_); in SetUp()
62 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
64 .WillOnce(Invoke(mock_.GetRefPtr(), &WantSenderStubMock::InvokeSendRequest)); in HWTEST_F()
68 EXPECT_EQ(IWantSender::WANT_SENDER_SEND, mock_->code_); in HWTEST_F()
/foundation/filemanagement/app_file_service/tests/unittests/backup_api/backup_impl/
H A Dservice_proxy_test.cpp48 sptr<IServiceMock> mock_ = nullptr; member in OHOS::FileManagement::Backup::ServiceProxyTest
54 mock_ = sptr(new IServiceMock()); in SetUp()
55 proxy_ = make_shared<ServiceProxy>(mock_); in SetUp()
62 mock_ = nullptr; in TearDown()
82 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
84 .WillOnce(Invoke(mock_.GetRefPtr(), &IServiceMock::InvokeSendRequest)); in HWTEST_F()
109 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
111 .WillOnce(Invoke(mock_.GetRefPtr(), &IServiceMock::InvokeSendRequest)); in HWTEST_F()
137 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
139 .WillOnce(Invoke(mock_ in HWTEST_F()
[all...]
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/
H A Dudmf_client_abnormal_test.cpp41 static inline shared_ptr<UdmfServiceClientMock> mock_ = nullptr; member in OHOS::Test::UdmfClientAbnormalTest
54 mock_ = make_shared<UdmfServiceClientMock>(); in SetUp()
55 MUdmfServiceClient::udmfServiceClient = mock_; in SetUp()
60 mock_ = nullptr; in TearDown()
72 EXPECT_CALL(*mock_, GetInstance()).WillOnce(Return(nullptr)); in HWTEST_F()
92 EXPECT_CALL(*mock_, GetInstance()).WillOnce(Return(nullptr)); in HWTEST_F()
111 EXPECT_CALL(*mock_, GetInstance()).WillOnce(Return(nullptr)); in HWTEST_F()
130 EXPECT_CALL(*mock_, GetInstance()).WillOnce(Return(nullptr)); in HWTEST_F()
149 EXPECT_CALL(*mock_, GetInstance()).WillOnce(Return(nullptr)); in HWTEST_F()
168 EXPECT_CALL(*mock_, GetInstanc in HWTEST_F()
[all...]
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/
H A Dcloud_sync_service_proxy_test.cpp39 sptr<CloudSyncServiceMock> mock_ = nullptr; member in OHOS::FileManagement::CloudSync::Test::CloudSyncServiceProxyTest
56 mock_ = sptr(new CloudSyncServiceMock()); in SetUp()
57 proxy_ = make_shared<CloudSyncServiceProxy>(mock_); in SetUp()
66 mock_ = nullptr; in TearDown()
81 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(-1)); in HWTEST_F()
97 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(E_OK)); in HWTEST_F()
130 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(-1)); in HWTEST_F()
147 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(E_OK)); in HWTEST_F()
163 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(-1)); in HWTEST_F()
180 EXPECT_CALL(*mock_, SendReques in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/ability_foreground_state_observer_proxy_test/
H A Dability_foreground_state_observer_proxy_test.cpp39 sptr<MockAbilityForegroundStateObserverStub> mock_; member in OHOS::AbilityRuntime::AbilityForegroundStateObserverProxyTest
49 mock_ = new MockAbilityForegroundStateObserverStub(); in SetUp()
50 observerProxy_ = new AbilityForegroundStateObserverProxy(mock_); in SetUp()
81 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
83 .WillOnce(Invoke(mock_.GetRefPtr(), &MockAbilityForegroundStateObserverStub::InvokeSendRequest)); in HWTEST_F()
86 static_cast<uint32_t>(IAbilityForegroundStateObserver::Message::ON_ABILITY_STATE_CHANGED), mock_->GetCode()); in HWTEST_F()
/foundation/ability/ability_runtime/test/unittest/ability_first_frame_state_observer_proxy_test/
H A Dability_first_frame_state_observer_proxy_test.cpp38 sptr<MockAbilityFirstFrameStateObserverStub> mock_; member in OHOS::AbilityRuntime::AbilityFirstFrameStateObserverProxyTest
48 mock_ = new MockAbilityFirstFrameStateObserverStub(); in SetUp()
49 observerProxy_ = new AbilityFirstFrameStateObserverProxy(mock_); in SetUp()
77 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
79 .WillOnce(Invoke(mock_.GetRefPtr(), &MockAbilityFirstFrameStateObserverStub::InvokeSendRequest)); in HWTEST_F()
84 mock_->GetCode()); in HWTEST_F()
/foundation/filemanagement/dfs_service/test/unittests/distributed_file_inner/
H A Ddistributed_file_daemon_proxy_sup_test.cpp38 static inline sptr<DaemonServiceMock> mock_ = nullptr; member in OHOS::Storage::DistributedFile::Test::DistributedFileDaemonProxyTest
44 mock_ = sptr(new DaemonServiceMock()); in SetUpTestCase()
45 proxy_ = make_shared<DistributedFileDaemonProxy>(mock_); in SetUpTestCase()
51 mock_ = nullptr; in TearDownTestCase()
91 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_INVAL_ARG)); in HWTEST_F()
107 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_OK)); in HWTEST_F()
139 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_INVAL_ARG)); in HWTEST_F()
155 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_OK)); in HWTEST_F()
/foundation/ability/ability_runtime/test/unittest/mission_listener_proxy_test/
H A Dmission_listener_proxy_test.cpp37 sptr<MissionListenerStubMock> mock_ {nullptr};
48 mock_ = new MissionListenerStubMock(); in SetUp()
49 proxy_ = std::make_shared<MissionListenerProxy>(mock_); in SetUp()
163 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)) in HWTEST_F()
165 .WillOnce(Invoke(mock_.GetRefPtr(), &MissionListenerStubMock::InvokeSendRequest)); in HWTEST_F()
169 EXPECT_EQ(IMissionListener::ON_MISSION_LABEL_UPDATED, mock_->code_); in HWTEST_F()
/foundation/ability/ability_runtime/test/unittest/app_foreground_state_observer_proxy_test/
H A Dapp_foreground_state_observer_proxy_test.cpp37 sptr<MockAppForegroundStateObserverStub> mock_; member in OHOS::AppExecFwk::AppForegroundStateObserverProxyTest
46 mock_ = new (std::nothrow) MockAppForegroundStateObserverStub(); in SetUp()
47 observerProxy_ = new (std::nothrow) AppForegroundStateObserverProxy(mock_); in SetUp()
71 EXPECT_CALL(*mock_, OnAppStateChanged(_)).Times(1); in HWTEST_F()
/foundation/ability/ability_runtime/test/unittest/render_state_observer_proxy_test/
H A Drender_state_observer_proxy_test.cpp36 sptr<MockRenderStateObserverStub> mock_; member in OHOS::AppExecFwk::RenderStateObserverProxyTest
45 mock_ = new (std::nothrow) MockRenderStateObserverStub(); in SetUp()
46 observerProxy_ = new (std::nothrow) RenderStateObserverProxy(mock_); in SetUp()
70 EXPECT_CALL(*mock_, OnRenderStateChanged(_)).Times(1); in HWTEST_F()
/foundation/filemanagement/dfs_service/test/unittests/distributed_file_daemon/
H A Ddaemon_service_proxy_test.cpp46 sptr<DaemonServiceMock> mock_ = nullptr; member in OHOS::Storage::DistributedFile::Test::DistributedDaemonProxyTest
61 mock_ = sptr(new DaemonServiceMock()); in SetUp()
62 proxy_ = make_shared<DistributedFileDaemonProxy>(mock_); in SetUp()
68 mock_ = nullptr; in TearDown()
82 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(E_OK)); in HWTEST_F()
97 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(E_OK)); in HWTEST_F()
112 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(E_OK)); in HWTEST_F()
H A Dfile_dfs_listener_proxy_test.cpp38 static inline sptr<FileDfsListenerMock> mock_ = nullptr; member in OHOS::Storage::DistributedFile::Test::FileDfsListenerProxyTest
45 mock_ = sptr(new FileDfsListenerMock()); in SetUpTestCase()
46 proxy_ = make_shared<FileDfsListenerProxy>(mock_); in SetUpTestCase()
54 mock_ = nullptr; in TearDownTestCase()
122 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_INVAL_ARG)); in HWTEST_F()
139 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_OK)); in HWTEST_F()
/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/
H A Dsvc_extension_proxy_test.cpp39 static inline sptr<BackupExtExtensionMock> mock_ = nullptr; member in OHOS::FileManagement::Backup::SvcExtensionProxyTest
45 mock_ = sptr(new BackupExtExtensionMock()); in SetUpTestCase()
46 proxy_ = sptr(new SvcExtensionProxy(mock_)); in SetUpTestCase()
52 mock_ = nullptr; in TearDownTestCase()
81 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(EPERM)); in HWTEST_F()
87 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(NO_ERROR)); in HWTEST_F()
95 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(NO_ERROR)); in HWTEST_F()
120 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(EPERM)); in HWTEST_F()
126 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(0)); in HWTEST_F()
152 EXPECT_CALL(*mock_, SendReques in HWTEST_F()
[all...]
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/ipc/
H A Ddownload_asset_callback_proxy_test.cpp38 sptr<DownloadAssetCallbackMock> mock_ = nullptr; member in OHOS::FileManagement::CloudSync::Test::DownloadAssetCallbackProxyTest
53 mock_ = sptr(new DownloadAssetCallbackMock()); in SetUp()
54 proxy_ = make_shared<DownloadAssetCallbackProxy>(mock_); in SetUp()
73 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(E_OK)); in HWTEST_F()
95 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).Times(1).WillOnce(Return(-1)); in HWTEST_F()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/ipc/
H A Dasset_send_callback_proxy_test.cpp41 static inline sptr<IAssetSendCallbackMock> mock_ = nullptr; member in OHOS::Storage::DistributedFile::Test::AssetSendCallbackProxyTest
48 mock_ = sptr(new IAssetSendCallbackMock()); in SetUpTestCase()
49 proxy_ = make_shared<AssetSendCallbackProxy>(mock_); in SetUpTestCase()
57 mock_ = nullptr; in TearDownTestCase()
109 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_INVAL_ARG)); in HWTEST_F()
128 EXPECT_CALL(*mock_, SendRequest(_, _, _, _)).WillOnce(Return(E_OK)); in HWTEST_F()

Completed in 11 milliseconds

12