Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 25 of 75) sorted by relevance

123

/base/notification/distributed_notification_service/frameworks/test/moduletest/
DBUILD.gn46 "${frameworks_path}/test/moduletest/mock/include",
51 "mock/blob.cpp",
52 "mock/distributed_kv_data_manager.cpp",
53 "mock/mock_accesstoken_kit.cpp",
54 "mock/mock_bundle_manager.cpp",
55 "mock/mock_bundle_manager_helper.cpp",
56 "mock/mock_bundle_mgr_proxy.cpp",
57 "mock/mock_change_notification.cpp",
58 "mock/mock_common_event_data.cpp",
59 "mock/mock_common_event_manager.cpp",
[all …]
/base/useriam/user_auth_framework/test/unittest/services/src/
Duser_idm_session_controller_test.cpp51 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
52 EXPECT_CALL(*mock, OpenSession(userId, _)).WillRepeatedly(Return(SUCCESS));
64 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
65 EXPECT_CALL(*mock, OpenSession(_, _)).WillRepeatedly(Return(SUCCESS));
77 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
78 EXPECT_CALL(*mock, OpenSession(userId, _)).WillRepeatedly(Return(GENERAL_ERROR));
92 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
93 …EXPECT_CALL(*mock, OpenSession(userId, _)).WillRepeatedly(DoAll(WithArg<1>(fillUpChallenge), Retur…
112 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
113 …EXPECT_CALL(*mock, OpenSession(userId, _)).WillRepeatedly(DoAll(WithArg<1>(fillUpChallenge), Retur…
[all …]
Dresource_node_test.cpp52 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
53 EXPECT_CALL(*mock, AddExecutor(_, _, _, _)).WillRepeatedly(Return(1));
66 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
67 …EXPECT_CALL(*mock, AddExecutor(_, _, _, _)).WillRepeatedly(DoAll(SetArgReferee<1>(DEST_EXECUTOR_IN…
68 …EXPECT_CALL(*mock, DeleteExecutor(DEST_EXECUTOR_INDEX)).Times(Exactly(1)).WillRepeatedly(Return(0)…
94 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
95 EXPECT_CALL(*mock, AddExecutor(_, _, _, _))
99 …EXPECT_CALL(*mock, DeleteExecutor(DEST_EXECUTOR_INDEX)).Times(Exactly(1)).WillRepeatedly(Return(0)…
Didentification_impl_test.cpp70 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
71 EXPECT_CALL(*mock, BeginIdentification(contextId, _, _, _, _)).WillRepeatedly(Return(1));
81 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
82 EXPECT_CALL(*mock, BeginIdentification(contextId, _, _, _, _)).WillRepeatedly(Return(0));
95 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
96 EXPECT_CALL(*mock, UpdateIdentificationResult(contextId, _, _)).WillRepeatedly(Return(1));
117 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
118 EXPECT_CALL(*mock, UpdateIdentificationResult(contextId, _, _))
Denrollment_impl_test.cpp70 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
71 EXPECT_CALL(*mock, BeginEnrollment(userId, _, _, _)).WillRepeatedly(Return(1));
82 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
83 EXPECT_CALL(*mock, BeginEnrollment(userId, _, _, _)).WillRepeatedly(Return(0));
100 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
101 EXPECT_CALL(*mock, UpdateEnrollmentResult(userId, _, _)).WillRepeatedly(Return(1));
119 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
135 …EXPECT_CALL(*mock, UpdateEnrollmentResult(userId, _, _)).WillRepeatedly(DoAll(WithArg<2>(fillUpInf…
Duser_idm_database_test.cpp49 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
50 EXPECT_CALL(*mock, GetUserInfo(_, _, _, _)).WillRepeatedly(Return(1));
59 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
72 EXPECT_CALL(*mock, GetUserInfo(USER_ID, _, _, _))
83 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
91 EXPECT_CALL(*mock, GetUserInfo(USER_ID, _, _, _))
102 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
122 EXPECT_CALL(*mock, GetUserInfo(USER_ID, _, _, _))
137 auto mock = MockIUserAuthInterface::Holder::GetInstance().Get(); variable
141 EXPECT_CALL(*mock, GetCredential(_, _, _)).WillRepeatedly(Return(1));
[all …]
/base/web/webview/test/unittest/nweb_window_adapter_test/
Dnweb_window_adapter_test.cpp138 std::shared_ptr<NWeb> mock = std::make_shared<NWebMock>(); variable
139 EXPECT_NE(mock, nullptr);
141 windowAdapter.RegistEventCb(g_window.GetRefPtr(), mock);
161 windowAdapter.VsyncCb(g_window.GetRefPtr(), mock);
166 windowAdapter.VsyncCb(g_window.GetRefPtr(), mock);
173 windowAdapter.RequestVsync(g_window.GetRefPtr(), mock);
178 windowAdapter.VsyncCb(g_window.GetRefPtr(), mock);
191 std::shared_ptr<NWeb> mock = std::make_shared<NWebMock>(); variable
192 EXPECT_NE(mock, nullptr);
193 windowAdapter.RequestVsync(window.GetRefPtr(), mock);
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
DBUILD.gn28 "${services_path}/ans/test/unittest/mock/include",
34 "mock/blob.cpp",
35 "mock/distributed_kv_data_manager.cpp",
36 "mock/mock_access_token_helper.cpp",
37 "mock/mock_bundle_manager_helper.cpp",
38 "mock/mock_event_handler.cpp",
39 "mock/mock_ipc.cpp",
40 "mock/mock_single_kv_store.cpp",
109 "${services_path}/ans/test/unittest/mock/include",
118 "mock/blob.cpp",
[all …]
/base/web/webview/test/unittest/aafwk_app_client_adapter/
Dnweb_aafwk_adapter_test.cpp101 MockAppMgrClient *mock = new MockAppMgrClient(); variable
102 g_adapter->appMgrClient_.reset((AppMgrClient *)mock);
103 EXPECT_CALL(*mock, StartRenderProcess(::testing::_, ::testing::_, ::testing::_, ::testing::_))
122 MockAppMgrClient *mock = new MockAppMgrClient(); variable
123 g_adapter->appMgrClient_.reset((AppMgrClient *)mock);
124 EXPECT_CALL(*mock, StartRenderProcess(::testing::_, ::testing::_, ::testing::_, ::testing::_))
163 MockAppMgrClient *mock = new MockAppMgrClient(); variable
164 g_adapter->appMgrClient_.reset((AppMgrClient *)mock);
165 EXPECT_CALL(*mock, GetRenderProcessTerminationStatus(::testing::_, ::testing::_))
187 MockAppMgrClient *mock = new MockAppMgrClient(); variable
[all …]
/base/powermgr/thermal_manager/services/native/test/unittest/
DBUILD.gn25 "mock/include",
175 # thermal mock proxy test
180 "mock/src/mock_thermal_remote_object.cpp",
201 # thermal mock proxy remote test
206 "mock/src/mock_peer_holder.cpp",
207 "mock/src/mock_thermal_remote_object.cpp",
228 # thermal mock proxy writeinterfacetoken test
233 "mock/src/mock_message_parcel.cpp",
234 "mock/src/mock_thermal_remote_object.cpp",
257 # thermal mock proxy writeremoteobject test
[all …]
/base/notification/common_event_service/services/test/unittest/
DBUILD.gn23 "${common_event_service_path}/test/mock/include",
38 "${common_event_service_path}/test/mock/mock_access_token_helper.cpp",
39 "${common_event_service_path}/test/mock/mock_bundle_manager.cpp",
69 "${common_event_service_path}/test/mock/mock_access_token_helper.cpp",
70 "${common_event_service_path}/test/mock/mock_bundle_manager.cpp",
100 "${common_event_service_path}/test/mock/mock_access_token_helper.cpp",
101 "${common_event_service_path}/test/mock/mock_bundle_manager.cpp",
131 "${common_event_service_path}/test/mock/mock_access_token_helper.cpp",
132 "${common_event_service_path}/test/mock/mock_bundle_manager.cpp",
170 "mock/mock_ability_manager_helper.cpp",
[all …]
/base/notification/distributed_notification_service/services/test/moduletest/
DBUILD.gn28 "${services_path}/ans/test/unittest/mock/include",
29 "${services_path}/test/moduletest/mock/include",
47 "${services_path}/ans/test/unittest/mock/mock_access_token_helper.cpp",
48 "${services_path}/ans/test/unittest/mock/mock_ipc.cpp",
50 "mock/blob.cpp",
51 "mock/distributed_kv_data_manager.cpp",
52 "mock/mock_bundle_manager.cpp",
53 "mock/mock_bundle_manager_helper.cpp",
54 "mock/mock_bundle_mgr_proxy.cpp",
55 "mock/mock_event_handler.cpp",
[all …]
/base/powermgr/display_manager/test/unittest/common/native/
DBUILD.gn26 "include/mock",
27 "mock/include",
107 "mock/src/mock_message_parcel.cpp",
108 "mock/src/mock_parcel.cpp",
109 "src/mock/display_mock_parcel_test.cpp",
131 "mock/src/mock_display_remote_object.cpp",
132 "mock/src/mock_message_parcel.cpp",
133 "mock/src/mock_parcel.cpp",
134 "src/mock/display_mock_test.cpp",
161 "mock/src/mock_display_remote_object.cpp",
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
DBUILD.gn22 "${services_path}/accountmgr/test/mock/common",
23 "${services_path}/accountmgr/test/mock/os_account",
41 "${services_path}/accountmgr/test/mock/common/bundle_manager_adapter.cpp",
42 "${services_path}/accountmgr/test/mock/os_account/os_account_interface.cpp",
43 "${services_path}/accountmgr/test/mock/os_account/permission_kit.cpp",
69 "${services_path}/accountmgr/test/mock/os_account",
87 "${services_path}/accountmgr/test/mock/common/bundle_manager_adapter.cpp",
88 "${services_path}/accountmgr/test/mock/os_account/os_account_interface.cpp",
89 "${services_path}/accountmgr/test/mock/os_account/permission_kit.cpp",
115 "${services_path}/accountmgr/test/mock/os_account",
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
DBUILD.gn22 "${app_account_services_path}/test/mock/app_account",
23 "${app_account_services_path}/test/mock/common",
173 "${app_account_services_path}/test/mock/app_account/accesstoken_kit.cpp",
174 "${app_account_services_path}/test/mock/common/bundle_manager_adapter.cpp",
246 include_dirs = [ "${app_account_services_path}/test/mock/app_account" ]
248 "${app_account_services_path}/test/mock/app_account/app_account_authenticator_manager.cpp",
249 "${app_account_services_path}/test/mock/app_account/mock_app_account_authenticator_stub.cpp",
250 "${app_account_services_path}/test/mock/common/ability_manager_adapter.cpp",
284 "${app_account_services_path}/test/mock/app_account/accesstoken_kit.cpp",
285 "${app_account_services_path}/test/mock/common/bundle_manager_adapter.cpp",
[all …]
/base/account/os_account/services/accountmgr/test/unittest/app_account/
DBUILD.gn22 "${app_account_services_path}/test/mock/app_account",
23 "${app_account_services_path}/test/mock/common",
49 "${app_account_services_path}/test/mock/app_account/accesstoken_kit.cpp",
85 "${app_account_services_path}/test/mock/app_account/accesstoken_kit.cpp",
86 "${app_account_services_path}/test/mock/common/bundle_manager_adapter.cpp",
150 "${app_account_services_path}/test/mock/app_account/accesstoken_kit.cpp",
151 "${app_account_services_path}/test/mock/app_account/mock_inner_app_account_manager.cpp",
152 "${app_account_services_path}/test/mock/common/bundle_manager_adapter.cpp",
222 "${app_account_services_path}/test/mock/app_account/mock_app_account_stub.cpp",
257 "${app_account_services_path}/test/mock/app_account/mock_app_account_control_manager.cpp",
[all …]
/base/powermgr/power_manager/services/native/test/unittest/
DBUILD.gn25 "mock",
33 "include/mock",
34 "mock",
282 "mock/mock_power_remote_object.cpp",
438 "mock/mock_power_remote_object.cpp",
439 "src/mock/power_mock_object_test.cpp",
463 "mock/mock_message_parcel.cpp",
464 "mock/mock_parcel.cpp",
465 "src/mock/power_mock_parcel_test.cpp",
490 "mock/mock_peer_holder.cpp",
[all …]
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_image_util_test/
DBUILD.gn27 "../mock",
33 "../mock/mock_image_packer.cpp",
34 "../mock/mock_image_source.cpp",
35 "../mock/mock_pixel_map.cpp",
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/
DBUILD.gn23 "${common_event_service_path}/test/mock/include",
31 "${common_event_service_path}/test/mock/mock_access_token_helper.cpp",
32 "${common_event_service_path}/test/mock/mock_bundle_manager.cpp",
33 "${common_event_service_path}/test/mock/mock_ipc.cpp",
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
DBUILD.gn23 "${common_event_service_path}/test/mock/mock_access_token_helper.cpp",
24 "${common_event_service_path}/test/mock/mock_bundle_manager.cpp",
25 "${common_event_service_path}/test/mock/mock_ipc.cpp",
26 "${common_event_service_path}/test/mock/mock_ipc_object_stub.cpp",
44 "${common_event_service_path}/test/mock/include",
/base/notification/distributed_notification_service/services/distributed/test/unittest/
DBUILD.gn48 "${services_path}/distributed/test/unittest/mock/mock_blob.cpp",
49 "${services_path}/distributed/test/unittest/mock/mock_change_notification.cpp",
50 "${services_path}/distributed/test/unittest/mock/mock_distributed_kv_data_manager.cpp",
51 "${services_path}/distributed/test/unittest/mock/mock_event_handler.cpp",
52 "${services_path}/distributed/test/unittest/mock/mock_single_kv_store.cpp",
/base/security/huks/test/unittest/huks_standard_test/module_test/mock/
DBUILD.gn24 "//base/security/huks/test/unittest/huks_standard_test/module_test/mock/ipc/include",
29 "//base/security/huks/test/unittest/huks_standard_test/module_test/mock/common/include",
34 …sources += [ "//base/security/huks/test/unittest/huks_standard_test/module_test/mock/ipc/src/huks_…
51 …"//base/security/huks/test/unittest/huks_standard_test/module_test/mock/common/src/huks_core_hal_m…
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
DBUILD.gn23 "mock/include",
28 "mock/mock_bundle_manager_helper.cpp",
29 "mock/mock_ipc.cpp",
/base/powermgr/battery_statistics/services/native/test/unittest/
DBUILD.gn33 "include/mock",
34 "mock/include",
342 "mock/source/mock_message_parcel.cpp",
343 "mock/source/mock_parcel.cpp",
344 "src/mock/stats_mock_parcel_test.cpp",
369 "mock/source/mock_stats_remote_object.cpp",
370 "src/mock/stats_mock_object_test.cpp",
395 "mock/source/mock_peer_holder.cpp",
396 "src/mock/stats_mock_peer_test.cpp",
/base/account/os_account/services/accountmgr/test/unittest/os_account/
DBUILD.gn63 "${services_path}/accountmgr/test/mock/os_account",
72 "${services_path}/accountmgr/test/unittest/os_account/mock",
108 "${services_path}/accountmgr/test/mock/os_account",
117 "${services_path}/accountmgr/test/unittest/os_account/mock",
129 "${services_path}/accountmgr/test/mock/src/mock_account_mgr_service.cpp",
169 "${services_path}/accountmgr/test/unittest/os_account/mock",
226 "${services_path}/accountmgr/test/unittest/os_account/mock",
243 "${services_path}/accountmgr/test/mock/os_account/os_account_interface.cpp",

123