/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | identify_context_test.cpp | 60 … std::shared_ptr<MockContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 61 ASSERT_NE(contextCallback, nullptr); 62 EXPECT_CALL(*contextCallback, OnResult(_, _)).Times(Exactly(1)); 66 auto oriContext = Common::MakeShared<IdentifyContext>(testContestId, identify, contextCallback); 89 std::shared_ptr<ContextCallback> contextCallback = nullptr; variable 91 …uto oriContext = Common::MakeShared<IdentifyContext>(testContestId, mockIdentify, contextCallback); 106 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 107 ASSERT_NE(contextCallback, nullptr); 109 …uto oriContext = Common::MakeShared<IdentifyContext>(testContestId, mockIdentify, contextCallback); 131 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable [all …]
|
D | context_factory_test.cpp | 61 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_AUTH_USER); variable 63 auto context = factory->CreateSimpleAuthContext(para, contextCallback); 76 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_AUTH_USER); variable 78 auto context = factory->CreateSimpleAuthContext(para, contextCallback); 89 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_IDENTIFY); variable 91 auto context = factory->CreateIdentifyContext(para, contextCallback); 104 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_IDENTIFY); variable 106 auto context = factory->CreateIdentifyContext(para, contextCallback); 117 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_ADD_CREDENTIAL); variable 119 auto context = factory->CreateEnrollContext(para, contextCallback); [all …]
|
D | context_callback_impl_test.cpp | 60 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_ADD_CREDENTIAL); variable 61 ASSERT_EQ(contextCallback, nullptr); 67 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_ADD_CREDENTIAL); variable 68 ASSERT_EQ(contextCallback, nullptr); 86 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_ADD_CREDENTIAL); variable 87 ASSERT_NE(contextCallback, nullptr); 88 contextCallback->OnAcquireInfo(static_cast<ExecutorRole>(0), 0, {}); 89 contextCallback->OnResult(testResult, *testAttr); 112 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_ADD_CREDENTIAL); variable 113 ASSERT_NE(contextCallback, nullptr); [all …]
|
D | widget_context_callback_impl_test.cpp | 65 auto contextCallback = variable 67 ASSERT_NE(contextCallback, nullptr); 70 contextCallback->OnResult(result, extraInfo); 78 auto contextCallback = Common::MakeShared<WidgetContextCallbackImpl>(widgetContext, authType); variable 79 ASSERT_NE(contextCallback, nullptr); 82 contextCallback->OnResult(result, extraInfo); 92 auto contextCallback = variable 94 ASSERT_NE(contextCallback, nullptr); 99 contextCallback->OnAcquireInfo(module, acquireInfo, extraInfo); 101 sptr<IRemoteObject> object = contextCallback->AsObject();
|
D | simple_auth_context_test.cpp | 64 … std::shared_ptr<MockContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 65 ASSERT_NE(contextCallback, nullptr); 66 EXPECT_CALL(*contextCallback, OnResult(_, _)).Times(Exactly(1)); 70 auto oriContext = Common::MakeShared<SimpleAuthContext>(testContestId, auth, contextCallback); 93 std::shared_ptr<ContextCallback> contextCallback = nullptr; variable 95 … auto oriContext = Common::MakeShared<SimpleAuthContext>(testContestId, mockAuth, contextCallback); 110 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 111 ASSERT_NE(contextCallback, nullptr); 113 … auto oriContext = Common::MakeShared<SimpleAuthContext>(testContestId, mockAuth, contextCallback); 135 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable [all …]
|
D | enroll_context_test.cpp | 61 … std::shared_ptr<MockContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 62 ASSERT_NE(contextCallback, nullptr); 63 EXPECT_CALL(*contextCallback, OnResult(_, _)).Times(Exactly(1)); 67 auto oriContext = Common::MakeShared<EnrollContext>(testContestId, enroll, contextCallback); 90 std::shared_ptr<ContextCallback> contextCallback = nullptr; variable 92 auto oriContext = Common::MakeShared<EnrollContext>(testContestId, mockEnroll, contextCallback); 107 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 108 ASSERT_NE(contextCallback, nullptr); 110 auto oriContext = Common::MakeShared<EnrollContext>(testContestId, mockEnroll, contextCallback); 132 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable [all …]
|
D | widget_context_test.cpp | 59 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); in CreateWidgetContext() local 60 return Common::MakeShared<WidgetContext>(contextId, para, contextCallback); in CreateWidgetContext() 247 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 286 std::shared_ptr<ContextCallback> contextCallback = Common::MakeShared<MockContextCallback>(); variable 323 auto contextCallback = Common::MakeShared<MockContextCallback>(); variable 324 auto widgetContext = Common::MakeShared<WidgetContext>(contextId, para, contextCallback);
|
/base/useriam/user_auth_framework/services/ipc/src/ |
D | user_auth_service.cpp | 340 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_AUTH_USER); in GetAuthContextCallback() local 341 if (contextCallback == nullptr) { in GetAuthContextCallback() 348 contextCallback->SetTraceCallingUid(callingUid); in GetAuthContextCallback() 349 contextCallback->SetTraceAuthType(authType); in GetAuthContextCallback() 350 contextCallback->SetTraceAuthTrustLevel(authTrustLevel); in GetAuthContextCallback() 351 return contextCallback; in GetAuthContextCallback() 358 auto contextCallback = GetAuthContextCallback(challenge, authType, authTrustLevel, callback); in Auth() local 359 if (contextCallback == nullptr) { in Auth() 367 contextCallback->OnResult(checkRet, extraInfo); in Auth() 373 contextCallback->OnResult(GENERAL_ERROR, extraInfo); in Auth() [all …]
|
D | user_idm_service.cpp | 208 auto contextCallback = ContextCallback::NewInstance(callback, in AddCredential() local 210 if (contextCallback == nullptr) { in AddCredential() 216 contextCallback->SetTraceAuthType(credPara.authType); in AddCredential() 217 contextCallback->SetTraceCallingUid(callingUid); in AddCredential() 218 contextCallback->SetTraceUserId(userId); in AddCredential() 222 contextCallback->OnResult(CHECK_PERMISSION_FAILED, extraInfo); in AddCredential() 236 auto context = ContextFactory::CreateEnrollContext(para, contextCallback); in AddCredential() 239 contextCallback->OnResult(GENERAL_ERROR, extraInfo); in AddCredential() 244 contextCallback->SetCleaner(cleaner); in AddCredential() 248 contextCallback->OnResult(context->GetLatestError(), extraInfo); in AddCredential() [all …]
|
/base/useriam/user_auth_framework/services/context/src/ |
D | widget_context.cpp | 126 auto contextCallback = ContextCallback::NewInstance(callback, TRACE_AUTH_USER); in GetAuthContextCallback() local 127 if (contextCallback == nullptr) { in GetAuthContextCallback() 134 contextCallback->SetTraceCallingUid(callingUid); in GetAuthContextCallback() 135 contextCallback->SetTraceAuthTrustLevel(authTrustLevel); in GetAuthContextCallback() 136 return contextCallback; in GetAuthContextCallback() 151 auto contextCallback = GetAuthContextCallback(authType, authTrustLevel, iamCallback); in BuildTask() local 152 if (contextCallback == nullptr) { in BuildTask() 164 auto context = ContextFactory::CreateSimpleAuthContext(para, contextCallback); in BuildTask() 171 contextCallback->SetCleaner(ContextHelper::Cleaner(context)); in BuildTask()
|