3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/certificates/identity/edu/Role.h"
7#include "mc/client/gui/screens/controllers/ActiveDirectoryAuthenticationInterface.h"
8#include "mc/client/gui/screens/controllers/AuthenticationUIState.h"
9#include "mc/deps/identity/edu_common/ActiveDirectoryAuthenticationState.h"
14struct EduPurchaseDetails;
16struct TransactionContext;
22 enum class UIState :
int {};
27 ::ll::TypedStorage<1, 1, ::ActiveDirectoryAuthenticationState> mState;
28 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::std::optional<::ActiveDirectoryPopup>>> mPopup;
29 ::ll::TypedStorage<4, 4, ::AuthenticationUIState> mUIState;
30 ::ll::TypedStorage<1, 1, bool> mShowLoginOnOpen;
31 ::ll::TypedStorage<1, 1, bool> mAllowExitGame;
32 ::ll::TypedStorage<1, 1, bool> mShouldShowTrialPurchaseLink;
33 ::ll::TypedStorage<1, 1, bool> mIsIOS;
34 ::ll::TypedStorage<1, 1, bool> mIsFirstTimeLogin;
35 ::ll::TypedStorage<1, 1, ::edu::Role> mRole;
41 virtual ~MockActiveDirectoryAuthentication() =
default;
43 virtual ::ActiveDirectoryAuthenticationState getAuthenticationState() const ;
45 virtual ::std::optional<::ActiveDirectoryPopup> getPopup() const ;
47 virtual ::std::
string getTrialPopupId() const ;
49 virtual ::AuthenticationUIState getSignInUIState() const ;
51 virtual
bool shouldShowPurchaseDialog() const ;
53 virtual
bool shouldAllowExitGame() const ;
55 virtual
bool shouldShowTrialPurchaseLink() const ;
57 virtual ::AuthenticationUIState initializeActiveDirectorySignIn(
bool) ;
59 virtual
void setActiveDirectoryAuthenticationOfferPurchase() ;
61 virtual
bool purchaseEduLicense(::std::unique_ptr<::TransactionContext>) ;
63 virtual
bool getUnfulfilledEduPurchase(::EduPurchaseDetails&) const ;
66 fulfillPriorEduPurchase(::std::weak_ptr<::Purchase>, ::std::unique_ptr<::TransactionContext>) ;
68 virtual ::AuthenticationUIState doSignIn(::AuthenticationUIState) ;
Definition ActiveDirectoryAuthenticationInterface.h:5
Definition MockActiveDirectoryAuthentication.h:5