Documentation ¶
Index ¶
- Constants
- func AssertProvisioned(tc libkb.TestContext) error
- func CanonicalTlfNameForTest(tlfName string) keybase1.CanonicalTlfName
- func CheckTeamMiscNotifications(tc libkb.TestContext, notifications *TeamNotifyListener)
- func DeleteAccount(tc libkb.TestContext, u *FakeUser)
- func FakeSalt() []byte
- func Logout(tc libkb.TestContext)
- func NewMetaContextForTest(c ChatTestContext) libkb.MetaContext
- func ProvisionNewDeviceKex(tcX *libkb.TestContext, tcY *libkb.TestContext, userX *FakeUser)
- func ResetAccount(tc libkb.TestContext, u *FakeUser)
- func RunTrack(tc libkb.TestContext, fu *FakeUser, username string) (them *libkb.User, err error)
- func RunTrackWithOptions(tc libkb.TestContext, fu *FakeUser, username string, ...) (them *libkb.User, err error)
- type ByUsername
- type ChatMockWorld
- type ChatRemoteMock
- func (m *ChatRemoteMock) DeleteConversation(ctx context.Context, convID chat1.ConversationID) (chat1.DeleteConversationRemoteRes, error)
- func (m *ChatRemoteMock) FailSharePost(ctx context.Context, _ chat1.FailSharePostArg) error
- func (m *ChatRemoteMock) GetConversationMetadataRemote(ctx context.Context, convID chat1.ConversationID) (res chat1.GetConversationMetadataRemoteRes, err error)
- func (m *ChatRemoteMock) GetGlobalAppNotificationSettings(ctx context.Context) (chat1.GlobalAppNotificationSettings, error)
- func (m *ChatRemoteMock) GetInboxByTLFIDRemote(ctx context.Context, tlfID chat1.TLFID) (res chat1.GetInboxByTLFIDRemoteRes, err error)
- func (m *ChatRemoteMock) GetInboxRemote(ctx context.Context, arg chat1.GetInboxRemoteArg) (res chat1.GetInboxRemoteRes, err error)
- func (m *ChatRemoteMock) GetInboxVersion(ctx context.Context, uid gregor1.UID) (chat1.InboxVers, error)
- func (m *ChatRemoteMock) GetMessageBefore(ctx context.Context, arg chat1.GetMessageBeforeArg) (chat1.GetMessageBeforeRes, error)
- func (m *ChatRemoteMock) GetMessagesRemote(ctx context.Context, arg chat1.GetMessagesRemoteArg) (res chat1.GetMessagesRemoteRes, err error)
- func (m *ChatRemoteMock) GetPublicConversations(ctx context.Context, arg chat1.GetPublicConversationsArg) (res chat1.GetPublicConversationsRes, err error)
- func (m *ChatRemoteMock) GetS3Params(context.Context, chat1.ConversationID) (chat1.S3Params, error)
- func (m *ChatRemoteMock) GetTLFConversations(ctx context.Context, arg chat1.GetTLFConversationsArg) (chat1.GetTLFConversationsRes, error)
- func (m *ChatRemoteMock) GetThreadRemote(ctx context.Context, arg chat1.GetThreadRemoteArg) (res chat1.GetThreadRemoteRes, err error)
- func (m *ChatRemoteMock) GetUnreadUpdateFull(ctx context.Context, inboxVers chat1.InboxVers) (chat1.UnreadUpdateFull, error)
- func (m *ChatRemoteMock) JoinConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
- func (m *ChatRemoteMock) LeaveConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
- func (m *ChatRemoteMock) MarkAsRead(ctx context.Context, arg chat1.MarkAsReadArg) (res chat1.MarkAsReadRes, err error)
- func (m *ChatRemoteMock) NewConversationRemote(ctx context.Context, arg chat1.ConversationIDTriple) (res chat1.NewConversationRemoteRes, err error)
- func (m *ChatRemoteMock) NewConversationRemote2(ctx context.Context, arg chat1.NewConversationRemote2Arg) (res chat1.NewConversationRemoteRes, err error)
- func (m *ChatRemoteMock) PostRemote(ctx context.Context, arg chat1.PostRemoteArg) (res chat1.PostRemoteRes, err error)
- func (m *ChatRemoteMock) PreviewConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
- func (m *ChatRemoteMock) RegisterSharePost(ctx context.Context, _ chat1.RegisterSharePostArg) error
- func (m *ChatRemoteMock) RemoteNotificationSuccessful(ctx context.Context, arg chat1.RemoteNotificationSuccessfulArg) error
- func (m *ChatRemoteMock) RetentionSweepConv(ctx context.Context, convID chat1.ConversationID) (res chat1.SweepRes, err error)
- func (m *ChatRemoteMock) S3Sign(context.Context, chat1.S3SignArg) ([]byte, error)
- func (m *ChatRemoteMock) SetAppNotificationSettings(ctx context.Context, arg chat1.SetAppNotificationSettingsArg) (res chat1.SetAppNotificationSettingsRes, err error)
- func (m *ChatRemoteMock) SetConvMinWriterRole(ctx context.Context, _ chat1.SetConvMinWriterRoleArg) (res chat1.SetConvMinWriterRoleRes, err error)
- func (m *ChatRemoteMock) SetConvRetention(ctx context.Context, _ chat1.SetConvRetentionArg) (res chat1.SetRetentionRes, err error)
- func (m *ChatRemoteMock) SetConversationStatus(ctx context.Context, arg chat1.SetConversationStatusArg) (res chat1.SetConversationStatusRes, err error)
- func (m *ChatRemoteMock) SetCurrentUser(uid gregor1.UID)
- func (m *ChatRemoteMock) SetGlobalAppNotificationSettings(ctx context.Context, arg chat1.GlobalAppNotificationSettings) error
- func (m *ChatRemoteMock) SetTeamRetention(ctx context.Context, _ chat1.SetTeamRetentionArg) (res chat1.SetRetentionRes, err error)
- func (m *ChatRemoteMock) SyncAll(ctx context.Context, arg chat1.SyncAllArg) (res chat1.SyncAllResult, err error)
- func (m *ChatRemoteMock) SyncChat(ctx context.Context, vers chat1.InboxVers) (chat1.SyncChatRes, error)
- func (m *ChatRemoteMock) SyncInbox(ctx context.Context, vers chat1.InboxVers) (chat1.SyncInboxRes, error)
- func (m *ChatRemoteMock) TlfFinalize(ctx context.Context, arg chat1.TlfFinalizeArg) error
- func (m *ChatRemoteMock) TlfResolve(ctx context.Context, arg chat1.TlfResolveArg) error
- func (m *ChatRemoteMock) UpdateTypingRemote(ctx context.Context, arg chat1.UpdateTypingRemoteArg) error
- func (m *ChatRemoteMock) UpgradeKBFSToImpteam(ctx context.Context, tlfID chat1.TLFID) error
- type ChatTestContext
- type ChatUI
- func (c *ChatUI) ChatAttachmentDownloadDone(context.Context) error
- func (c *ChatUI) ChatAttachmentDownloadProgress(ctx context.Context, arg chat1.ChatAttachmentDownloadProgressArg) error
- func (c *ChatUI) ChatAttachmentDownloadStart(context.Context) error
- func (c *ChatUI) ChatConfirmChannelDelete(ctx context.Context, arg chat1.ChatConfirmChannelDeleteArg) (bool, error)
- func (c *ChatUI) ChatInboxConversation(ctx context.Context, arg chat1.ChatInboxConversationArg) error
- func (c *ChatUI) ChatInboxFailed(ctx context.Context, arg chat1.ChatInboxFailedArg) error
- func (c *ChatUI) ChatInboxUnverified(ctx context.Context, arg chat1.ChatInboxUnverifiedArg) error
- func (c *ChatUI) ChatSearchDone(ctx context.Context, arg chat1.ChatSearchDoneArg) error
- func (c *ChatUI) ChatSearchHit(ctx context.Context, arg chat1.ChatSearchHitArg) error
- func (c *ChatUI) ChatThreadCached(ctx context.Context, arg chat1.ChatThreadCachedArg) error
- func (c *ChatUI) ChatThreadFull(ctx context.Context, arg chat1.ChatThreadFullArg) error
- type DummyAssetDeleter
- type FakeIdentifyUI
- func (ui *FakeIdentifyUI) Cancel() error
- func (ui *FakeIdentifyUI) Confirm(outcome *keybase1.IdentifyOutcome) (result keybase1.ConfirmResult, err error)
- func (ui *FakeIdentifyUI) Dismiss(_ string, _ keybase1.DismissReason) error
- func (ui *FakeIdentifyUI) DisplayCryptocurrency(keybase1.Cryptocurrency) error
- func (ui *FakeIdentifyUI) DisplayKey(ik keybase1.IdentifyKey) error
- func (ui *FakeIdentifyUI) DisplayTLFCreateWithInvite(arg keybase1.DisplayTLFCreateWithInviteArg) error
- func (ui *FakeIdentifyUI) DisplayTrackStatement(string) error
- func (ui *FakeIdentifyUI) DisplayUserCard(keybase1.UserCard) error
- func (ui *FakeIdentifyUI) Finish() error
- func (ui *FakeIdentifyUI) FinishSocialProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
- func (ui *FakeIdentifyUI) FinishWebProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
- func (ui *FakeIdentifyUI) LaunchNetworkChecks(id *keybase1.Identity, user *keybase1.User) error
- func (ui *FakeIdentifyUI) ReportLastTrack(*keybase1.TrackSummary) error
- func (ui *FakeIdentifyUI) ReportTrackToken(tok keybase1.TrackToken) error
- func (ui *FakeIdentifyUI) SetStrict(b bool)
- func (ui *FakeIdentifyUI) Start(username string, _ keybase1.IdentifyReason, forceDisplay bool) error
- type FakeUser
- type MockChatHelper
- func (m *MockChatHelper) FindConversations(ctx context.Context, userLocalData bool, name string, topicName *string, ...) ([]chat1.ConversationLocal, error)
- func (m *MockChatHelper) FindConversationsByID(ctx context.Context, convIDs []chat1.ConversationID) (convs []chat1.ConversationLocal, err error)
- func (m *MockChatHelper) GetChannelTopicName(ctx context.Context, teamID keybase1.TeamID, topicType chat1.TopicType, ...) (string, error)
- func (m *MockChatHelper) GetMessages(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) ([]chat1.MessageUnboxed, error)
- func (m *MockChatHelper) SendMsgByID(ctx context.Context, convID chat1.ConversationID, ...) error
- func (m *MockChatHelper) SendMsgByIDNonblock(ctx context.Context, convID chat1.ConversationID, ...) error
- func (m *MockChatHelper) SendMsgByName(ctx context.Context, name string, topicName *string, ...) error
- func (m *MockChatHelper) SendMsgByNameNonblock(ctx context.Context, name string, topicName *string, ...) error
- func (m *MockChatHelper) SendTextByID(ctx context.Context, convID chat1.ConversationID, ...) error
- func (m *MockChatHelper) SendTextByIDNonblock(ctx context.Context, convID chat1.ConversationID, ...) error
- func (m *MockChatHelper) SendTextByName(ctx context.Context, name string, topicName *string, ...) error
- func (m *MockChatHelper) SendTextByNameNonblock(ctx context.Context, name string, topicName *string, ...) error
- func (m *MockChatHelper) UpgradeKBFSToImpteam(ctx context.Context, tlfName string, tlfID chat1.TLFID, public bool) error
- type MockMessage
- type NonblockInboxResult
- type NonblockSearchResult
- type NonblockThreadResult
- type TeamNotifyListener
- type TestProvisionUI
- func (u *TestProvisionUI) ChooseDevice(_ context.Context, arg keybase1.ChooseDeviceArg) (keybase1.DeviceID, error)
- func (u *TestProvisionUI) ChooseDeviceType(_ context.Context, _ keybase1.ChooseDeviceTypeArg) (keybase1.DeviceType, error)
- func (u *TestProvisionUI) ChooseGPGMethod(_ context.Context, _ keybase1.ChooseGPGMethodArg) (keybase1.GPGMethod, error)
- func (u *TestProvisionUI) ChooseProvisioningMethod(_ context.Context, _ keybase1.ChooseProvisioningMethodArg) (keybase1.ProvisionMethod, error)
- func (u *TestProvisionUI) DisplayAndPromptSecret(_ context.Context, arg keybase1.DisplayAndPromptSecretArg) (keybase1.SecretResponse, error)
- func (u *TestProvisionUI) DisplaySecretExchanged(_ context.Context, _ int) error
- func (u *TestProvisionUI) PromptNewDeviceName(_ context.Context, arg keybase1.PromptNewDeviceNameArg) (string, error)
- func (u *TestProvisionUI) ProvisioneeSuccess(_ context.Context, _ keybase1.ProvisioneeSuccessArg) error
- func (u *TestProvisionUI) ProvisionerSuccess(_ context.Context, _ keybase1.ProvisionerSuccessArg) error
- func (u *TestProvisionUI) SwitchToGPGSignOK(ctx context.Context, arg keybase1.SwitchToGPGSignOKArg) (bool, error)
- type TlfMock
- func (m *TlfMock) AllCryptKeys(ctx context.Context, tlfName string, public bool) (res types.AllCryptKeys, err error)
- func (m *TlfMock) CompleteAndCanonicalizePrivateTlfName(ctx context.Context, tlfName string) (keybase1.CanonicalTLFNameAndIDWithBreaks, error)
- func (m *TlfMock) CryptKeys(ctx context.Context, tlfName string) (res keybase1.GetTLFCryptKeysRes, err error)
- func (m *TlfMock) DecryptionKey(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (types.CryptKey, error)
- func (m *TlfMock) EncryptionKey(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (types.CryptKey, *types.NameInfo, error)
- func (m *TlfMock) EphemeralDecryptionKey(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (keybase1.TeamEk, error)
- func (m *TlfMock) EphemeralEncryptionKey(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (keybase1.TeamEk, error)
- func (m *TlfMock) LookupID(ctx context.Context, tlfName string, public bool) (res *types.NameInfo, err error)
- func (m *TlfMock) LookupIDUntrusted(ctx context.Context, tlfName string, public bool) (*types.NameInfoUntrusted, error)
- func (m *TlfMock) LookupName(ctx context.Context, tlfID chat1.TLFID, public bool) (res *types.NameInfo, err error)
- func (m *TlfMock) PublicCanonicalTLFNameAndID(ctx context.Context, tlfName string) (keybase1.CanonicalTLFNameAndIDWithBreaks, error)
- func (m *TlfMock) ShouldPairwiseMAC(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (bool, []keybase1.KID, error)
Constants ¶
View Source
const DefaultDeviceName = "my device"
Variables ¶
This section is empty.
Functions ¶
func AssertProvisioned ¶
func AssertProvisioned(tc libkb.TestContext) error
func CanonicalTlfNameForTest ¶
func CanonicalTlfNameForTest(tlfName string) keybase1.CanonicalTlfName
func CheckTeamMiscNotifications ¶
func CheckTeamMiscNotifications(tc libkb.TestContext, notifications *TeamNotifyListener)
func DeleteAccount ¶
func DeleteAccount(tc libkb.TestContext, u *FakeUser)
func NewMetaContextForTest ¶
func NewMetaContextForTest(c ChatTestContext) libkb.MetaContext
func ProvisionNewDeviceKex ¶
func ProvisionNewDeviceKex(tcX *libkb.TestContext, tcY *libkb.TestContext, userX *FakeUser)
Provision a new device (in context tcY) from the active (and logged in) device in test context tcX. This was adapted from engine/kex2_test.go Note that it uses Errorf in goroutines, so if it fails the test will not fail until later. tcX is a TestContext where device X (the provisioner) is already provisioned and logged in. this function will provision a new device Y inside tcY
func ResetAccount ¶
func ResetAccount(tc libkb.TestContext, u *FakeUser)
copied from engine/common_test.go
func RunTrackWithOptions ¶
Types ¶
type ByUsername ¶
type ByUsername []*FakeUser
func (ByUsername) Len ¶
func (m ByUsername) Len() int
func (ByUsername) Less ¶
func (m ByUsername) Less(i, j int) bool
func (ByUsername) Swap ¶
func (m ByUsername) Swap(i, j int)
type ChatMockWorld ¶
type ChatMockWorld struct { Fc clockwork.FakeClock T testing.TB Tcs map[string]*ChatTestContext TcsByID map[string]*ChatTestContext Users map[string]*FakeUser // each slice should always be sorted by message ID in desc, i.e. newest messages first Msgs map[string][]*chat1.MessageBoxed // contains filtered or unexported fields }
func NewChatMockWorld ¶
func NewChatMockWorld(t *testing.T, name string, numUsers int) (world *ChatMockWorld)
func (*ChatMockWorld) Cleanup ¶
func (w *ChatMockWorld) Cleanup()
func (*ChatMockWorld) GetConversationByID ¶
func (w *ChatMockWorld) GetConversationByID(convID chat1.ConversationID) *chat1.Conversation
func (*ChatMockWorld) GetUsers ¶
func (w *ChatMockWorld) GetUsers() (res []*FakeUser)
type ChatRemoteMock ¶
type ChatRemoteMock struct { CacheBodiesVersion int CacheInboxVersion int GetThreadRemoteFunc func(m *ChatRemoteMock, ctx context.Context, arg chat1.GetThreadRemoteArg) (chat1.GetThreadRemoteRes, error) SyncInboxFunc func(m *ChatRemoteMock, ctx context.Context, vers chat1.InboxVers) (chat1.SyncInboxRes, error) // contains filtered or unexported fields }
func NewChatRemoteMock ¶
func NewChatRemoteMock(world *ChatMockWorld) (m *ChatRemoteMock)
func (*ChatRemoteMock) DeleteConversation ¶
func (m *ChatRemoteMock) DeleteConversation(ctx context.Context, convID chat1.ConversationID) (chat1.DeleteConversationRemoteRes, error)
func (*ChatRemoteMock) FailSharePost ¶
func (m *ChatRemoteMock) FailSharePost(ctx context.Context, _ chat1.FailSharePostArg) error
func (*ChatRemoteMock) GetConversationMetadataRemote ¶
func (m *ChatRemoteMock) GetConversationMetadataRemote(ctx context.Context, convID chat1.ConversationID) (res chat1.GetConversationMetadataRemoteRes, err error)
func (*ChatRemoteMock) GetGlobalAppNotificationSettings ¶
func (m *ChatRemoteMock) GetGlobalAppNotificationSettings(ctx context.Context) (chat1.GlobalAppNotificationSettings, error)
func (*ChatRemoteMock) GetInboxByTLFIDRemote ¶
func (m *ChatRemoteMock) GetInboxByTLFIDRemote(ctx context.Context, tlfID chat1.TLFID) (res chat1.GetInboxByTLFIDRemoteRes, err error)
func (*ChatRemoteMock) GetInboxRemote ¶
func (m *ChatRemoteMock) GetInboxRemote(ctx context.Context, arg chat1.GetInboxRemoteArg) (res chat1.GetInboxRemoteRes, err error)
func (*ChatRemoteMock) GetInboxVersion ¶
func (*ChatRemoteMock) GetMessageBefore ¶
func (m *ChatRemoteMock) GetMessageBefore(ctx context.Context, arg chat1.GetMessageBeforeArg) (chat1.GetMessageBeforeRes, error)
func (*ChatRemoteMock) GetMessagesRemote ¶
func (m *ChatRemoteMock) GetMessagesRemote(ctx context.Context, arg chat1.GetMessagesRemoteArg) (res chat1.GetMessagesRemoteRes, err error)
func (*ChatRemoteMock) GetPublicConversations ¶
func (m *ChatRemoteMock) GetPublicConversations(ctx context.Context, arg chat1.GetPublicConversationsArg) (res chat1.GetPublicConversationsRes, err error)
func (*ChatRemoteMock) GetS3Params ¶
func (m *ChatRemoteMock) GetS3Params(context.Context, chat1.ConversationID) (chat1.S3Params, error)
func (*ChatRemoteMock) GetTLFConversations ¶
func (m *ChatRemoteMock) GetTLFConversations(ctx context.Context, arg chat1.GetTLFConversationsArg) (chat1.GetTLFConversationsRes, error)
func (*ChatRemoteMock) GetThreadRemote ¶
func (m *ChatRemoteMock) GetThreadRemote(ctx context.Context, arg chat1.GetThreadRemoteArg) (res chat1.GetThreadRemoteRes, err error)
func (*ChatRemoteMock) GetUnreadUpdateFull ¶
func (m *ChatRemoteMock) GetUnreadUpdateFull(ctx context.Context, inboxVers chat1.InboxVers) (chat1.UnreadUpdateFull, error)
func (*ChatRemoteMock) JoinConversation ¶
func (m *ChatRemoteMock) JoinConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
func (*ChatRemoteMock) LeaveConversation ¶
func (m *ChatRemoteMock) LeaveConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
func (*ChatRemoteMock) MarkAsRead ¶
func (m *ChatRemoteMock) MarkAsRead(ctx context.Context, arg chat1.MarkAsReadArg) (res chat1.MarkAsReadRes, err error)
func (*ChatRemoteMock) NewConversationRemote ¶
func (m *ChatRemoteMock) NewConversationRemote(ctx context.Context, arg chat1.ConversationIDTriple) (res chat1.NewConversationRemoteRes, err error)
func (*ChatRemoteMock) NewConversationRemote2 ¶
func (m *ChatRemoteMock) NewConversationRemote2(ctx context.Context, arg chat1.NewConversationRemote2Arg) (res chat1.NewConversationRemoteRes, err error)
func (*ChatRemoteMock) PostRemote ¶
func (m *ChatRemoteMock) PostRemote(ctx context.Context, arg chat1.PostRemoteArg) (res chat1.PostRemoteRes, err error)
func (*ChatRemoteMock) PreviewConversation ¶
func (m *ChatRemoteMock) PreviewConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
func (*ChatRemoteMock) RegisterSharePost ¶
func (m *ChatRemoteMock) RegisterSharePost(ctx context.Context, _ chat1.RegisterSharePostArg) error
func (*ChatRemoteMock) RemoteNotificationSuccessful ¶
func (m *ChatRemoteMock) RemoteNotificationSuccessful(ctx context.Context, arg chat1.RemoteNotificationSuccessfulArg) error
func (*ChatRemoteMock) RetentionSweepConv ¶
func (m *ChatRemoteMock) RetentionSweepConv(ctx context.Context, convID chat1.ConversationID) (res chat1.SweepRes, err error)
func (*ChatRemoteMock) SetAppNotificationSettings ¶
func (m *ChatRemoteMock) SetAppNotificationSettings(ctx context.Context, arg chat1.SetAppNotificationSettingsArg) (res chat1.SetAppNotificationSettingsRes, err error)
func (*ChatRemoteMock) SetConvMinWriterRole ¶
func (m *ChatRemoteMock) SetConvMinWriterRole(ctx context.Context, _ chat1.SetConvMinWriterRoleArg) (res chat1.SetConvMinWriterRoleRes, err error)
func (*ChatRemoteMock) SetConvRetention ¶
func (m *ChatRemoteMock) SetConvRetention(ctx context.Context, _ chat1.SetConvRetentionArg) (res chat1.SetRetentionRes, err error)
func (*ChatRemoteMock) SetConversationStatus ¶
func (m *ChatRemoteMock) SetConversationStatus(ctx context.Context, arg chat1.SetConversationStatusArg) (res chat1.SetConversationStatusRes, err error)
func (*ChatRemoteMock) SetCurrentUser ¶
func (m *ChatRemoteMock) SetCurrentUser(uid gregor1.UID)
func (*ChatRemoteMock) SetGlobalAppNotificationSettings ¶
func (m *ChatRemoteMock) SetGlobalAppNotificationSettings(ctx context.Context, arg chat1.GlobalAppNotificationSettings) error
func (*ChatRemoteMock) SetTeamRetention ¶
func (m *ChatRemoteMock) SetTeamRetention(ctx context.Context, _ chat1.SetTeamRetentionArg) (res chat1.SetRetentionRes, err error)
func (*ChatRemoteMock) SyncAll ¶
func (m *ChatRemoteMock) SyncAll(ctx context.Context, arg chat1.SyncAllArg) (res chat1.SyncAllResult, err error)
func (*ChatRemoteMock) SyncChat ¶
func (m *ChatRemoteMock) SyncChat(ctx context.Context, vers chat1.InboxVers) (chat1.SyncChatRes, error)
func (*ChatRemoteMock) SyncInbox ¶
func (m *ChatRemoteMock) SyncInbox(ctx context.Context, vers chat1.InboxVers) (chat1.SyncInboxRes, error)
func (*ChatRemoteMock) TlfFinalize ¶
func (m *ChatRemoteMock) TlfFinalize(ctx context.Context, arg chat1.TlfFinalizeArg) error
func (*ChatRemoteMock) TlfResolve ¶
func (m *ChatRemoteMock) TlfResolve(ctx context.Context, arg chat1.TlfResolveArg) error
func (*ChatRemoteMock) UpdateTypingRemote ¶
func (m *ChatRemoteMock) UpdateTypingRemote(ctx context.Context, arg chat1.UpdateTypingRemoteArg) error
func (*ChatRemoteMock) UpgradeKBFSToImpteam ¶
type ChatTestContext ¶
type ChatTestContext struct { libkb.TestContext ChatG *globals.ChatContext }
func (ChatTestContext) Cleanup ¶
func (c ChatTestContext) Cleanup()
func (ChatTestContext) Context ¶
func (c ChatTestContext) Context() *globals.Context
type ChatUI ¶
type ChatUI struct {
// contains filtered or unexported fields
}
func NewChatUI ¶
func NewChatUI(inboxCb chan NonblockInboxResult, threadCb chan NonblockThreadResult, searchHitCb chan chat1.ChatSearchHitArg, searchDoneCb chan chat1.ChatSearchDoneArg) *ChatUI
func (*ChatUI) ChatAttachmentDownloadDone ¶
func (*ChatUI) ChatAttachmentDownloadProgress ¶
func (*ChatUI) ChatAttachmentDownloadStart ¶
func (*ChatUI) ChatConfirmChannelDelete ¶
func (*ChatUI) ChatInboxConversation ¶
func (*ChatUI) ChatInboxFailed ¶
func (*ChatUI) ChatInboxUnverified ¶
func (*ChatUI) ChatSearchDone ¶
func (*ChatUI) ChatSearchHit ¶
func (*ChatUI) ChatThreadCached ¶
func (*ChatUI) ChatThreadFull ¶
type DummyAssetDeleter ¶
type DummyAssetDeleter struct{}
func NewDummyAssetDeleter ¶
func NewDummyAssetDeleter() DummyAssetDeleter
func (DummyAssetDeleter) DeleteAssets ¶
func (d DummyAssetDeleter) DeleteAssets(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, assets []chat1.Asset)
DeleteAssets implements github.com/keybase/go/chat/storage/storage.AssetDeleter interface.
type FakeIdentifyUI ¶
type FakeIdentifyUI struct { Proofs map[string]string ProofResults map[string]keybase1.LinkCheckResult User *keybase1.User Confirmed bool Keys map[libkb.PGPFingerprint]*keybase1.TrackDiff DisplayKeyCalls int Outcome *keybase1.IdentifyOutcome StartCount int Token keybase1.TrackToken BrokenTracking bool DisplayTLFArg keybase1.DisplayTLFCreateWithInviteArg DisplayTLFCount int sync.Mutex }
func (*FakeIdentifyUI) Cancel ¶
func (ui *FakeIdentifyUI) Cancel() error
func (*FakeIdentifyUI) Confirm ¶
func (ui *FakeIdentifyUI) Confirm(outcome *keybase1.IdentifyOutcome) (result keybase1.ConfirmResult, err error)
func (*FakeIdentifyUI) Dismiss ¶
func (ui *FakeIdentifyUI) Dismiss(_ string, _ keybase1.DismissReason) error
func (*FakeIdentifyUI) DisplayCryptocurrency ¶
func (ui *FakeIdentifyUI) DisplayCryptocurrency(keybase1.Cryptocurrency) error
func (*FakeIdentifyUI) DisplayKey ¶
func (ui *FakeIdentifyUI) DisplayKey(ik keybase1.IdentifyKey) error
func (*FakeIdentifyUI) DisplayTLFCreateWithInvite ¶
func (ui *FakeIdentifyUI) DisplayTLFCreateWithInvite(arg keybase1.DisplayTLFCreateWithInviteArg) error
func (*FakeIdentifyUI) DisplayTrackStatement ¶
func (ui *FakeIdentifyUI) DisplayTrackStatement(string) error
func (*FakeIdentifyUI) DisplayUserCard ¶
func (ui *FakeIdentifyUI) DisplayUserCard(keybase1.UserCard) error
func (*FakeIdentifyUI) Finish ¶
func (ui *FakeIdentifyUI) Finish() error
func (*FakeIdentifyUI) FinishSocialProofCheck ¶
func (ui *FakeIdentifyUI) FinishSocialProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
func (*FakeIdentifyUI) FinishWebProofCheck ¶
func (ui *FakeIdentifyUI) FinishWebProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
func (*FakeIdentifyUI) LaunchNetworkChecks ¶
func (*FakeIdentifyUI) ReportLastTrack ¶
func (ui *FakeIdentifyUI) ReportLastTrack(*keybase1.TrackSummary) error
func (*FakeIdentifyUI) ReportTrackToken ¶
func (ui *FakeIdentifyUI) ReportTrackToken(tok keybase1.TrackToken) error
func (*FakeIdentifyUI) SetStrict ¶
func (ui *FakeIdentifyUI) SetStrict(b bool)
func (*FakeIdentifyUI) Start ¶
func (ui *FakeIdentifyUI) Start(username string, _ keybase1.IdentifyReason, forceDisplay bool) error
type FakeUser ¶
type FakeUser struct { Username string Email string Passphrase string User *libkb.User EldestSeqno keybase1.Seqno }
func CreateAndSignupFakeUser ¶
func CreateAndSignupFakeUser(prefix string, g *libkb.GlobalContext) (*FakeUser, error)
func CreateAndSignupFakeUserPaper ¶
func CreateAndSignupFakeUserPaper(prefix string, g *libkb.GlobalContext) (*FakeUser, error)
func NewFakeUser ¶
func (*FakeUser) GetUserVersion ¶
func (fu *FakeUser) GetUserVersion() keybase1.UserVersion
func (*FakeUser) NewSecretUI ¶
func (fu *FakeUser) NewSecretUI() *libkb.TestSecretUI
func (FakeUser) NormalizedUsername ¶
func (fu FakeUser) NormalizedUsername() libkb.NormalizedUsername
type MockChatHelper ¶
type MockChatHelper struct { SentMessages []MockMessage // contains filtered or unexported fields }
func NewMockChatHelper ¶
func NewMockChatHelper() *MockChatHelper
func (*MockChatHelper) FindConversations ¶
func (m *MockChatHelper) FindConversations(ctx context.Context, userLocalData bool, name string, topicName *string, topicType chat1.TopicType, membersType chat1.ConversationMembersType, vis keybase1.TLFVisibility) ([]chat1.ConversationLocal, error)
func (*MockChatHelper) FindConversationsByID ¶
func (m *MockChatHelper) FindConversationsByID(ctx context.Context, convIDs []chat1.ConversationID) (convs []chat1.ConversationLocal, err error)
func (*MockChatHelper) GetChannelTopicName ¶
func (*MockChatHelper) GetMessages ¶
func (m *MockChatHelper) GetMessages(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, msgIDs []chat1.MessageID, resolveSupersedes bool) ([]chat1.MessageUnboxed, error)
func (*MockChatHelper) SendMsgByID ¶
func (m *MockChatHelper) SendMsgByID(ctx context.Context, convID chat1.ConversationID, trip chat1.ConversationIDTriple, tlfName string, body chat1.MessageBody, msgType chat1.MessageType) error
func (*MockChatHelper) SendMsgByIDNonblock ¶
func (m *MockChatHelper) SendMsgByIDNonblock(ctx context.Context, convID chat1.ConversationID, trip chat1.ConversationIDTriple, tlfName string, body chat1.MessageBody, msgType chat1.MessageType) error
func (*MockChatHelper) SendMsgByName ¶
func (m *MockChatHelper) SendMsgByName(ctx context.Context, name string, topicName *string, membersType chat1.ConversationMembersType, ident keybase1.TLFIdentifyBehavior, body chat1.MessageBody, msgType chat1.MessageType) error
func (*MockChatHelper) SendMsgByNameNonblock ¶
func (m *MockChatHelper) SendMsgByNameNonblock(ctx context.Context, name string, topicName *string, membersType chat1.ConversationMembersType, ident keybase1.TLFIdentifyBehavior, body chat1.MessageBody, msgType chat1.MessageType) error
func (*MockChatHelper) SendTextByID ¶
func (m *MockChatHelper) SendTextByID(ctx context.Context, convID chat1.ConversationID, trip chat1.ConversationIDTriple, tlfName string, text string) error
func (*MockChatHelper) SendTextByIDNonblock ¶
func (m *MockChatHelper) SendTextByIDNonblock(ctx context.Context, convID chat1.ConversationID, trip chat1.ConversationIDTriple, tlfName string, text string) error
func (*MockChatHelper) SendTextByName ¶
func (m *MockChatHelper) SendTextByName(ctx context.Context, name string, topicName *string, membersType chat1.ConversationMembersType, ident keybase1.TLFIdentifyBehavior, text string) error
func (*MockChatHelper) SendTextByNameNonblock ¶
func (m *MockChatHelper) SendTextByNameNonblock(ctx context.Context, name string, topicName *string, membersType chat1.ConversationMembersType, ident keybase1.TLFIdentifyBehavior, text string) error
func (*MockChatHelper) UpgradeKBFSToImpteam ¶
type MockMessage ¶
type MockMessage struct { Body chat1.MessageBody MsgType chat1.MessageType // contains filtered or unexported fields }
MockMessage only supports what we're currently testing (system message for git push).
func MockSentMessages ¶
func MockSentMessages(g *libkb.GlobalContext, t libkb.TestingTB) []MockMessage
type NonblockInboxResult ¶
type NonblockInboxResult struct { ConvID chat1.ConversationID Err error ConvRes *chat1.InboxUIItem InboxRes *chat1.UnverifiedInboxUIItems }
type NonblockSearchResult ¶
type NonblockSearchResult struct {
chat1.ChatSearchHitArg
}
type NonblockThreadResult ¶
type NonblockThreadResult struct { Thread *chat1.UIMessages Full bool }
type TeamNotifyListener ¶
type TeamNotifyListener struct { libkb.NoopNotifyListener // contains filtered or unexported fields }
func NewTeamNotifyListener ¶
func NewTeamNotifyListener() *TeamNotifyListener
func (*TeamNotifyListener) TeamChangedByID ¶
func (n *TeamNotifyListener) TeamChangedByID(teamID keybase1.TeamID, latestSeqno keybase1.Seqno, implicitTeam bool, changes keybase1.TeamChangeSet)
func (*TeamNotifyListener) TeamChangedByName ¶
func (n *TeamNotifyListener) TeamChangedByName(teamName string, latestSeqno keybase1.Seqno, implicitTeam bool, changes keybase1.TeamChangeSet)
type TestProvisionUI ¶
func (*TestProvisionUI) ChooseDevice ¶
func (u *TestProvisionUI) ChooseDevice(_ context.Context, arg keybase1.ChooseDeviceArg) (keybase1.DeviceID, error)
func (*TestProvisionUI) ChooseDeviceType ¶
func (u *TestProvisionUI) ChooseDeviceType(_ context.Context, _ keybase1.ChooseDeviceTypeArg) (keybase1.DeviceType, error)
func (*TestProvisionUI) ChooseGPGMethod ¶
func (u *TestProvisionUI) ChooseGPGMethod(_ context.Context, _ keybase1.ChooseGPGMethodArg) (keybase1.GPGMethod, error)
func (*TestProvisionUI) ChooseProvisioningMethod ¶
func (u *TestProvisionUI) ChooseProvisioningMethod(_ context.Context, _ keybase1.ChooseProvisioningMethodArg) (keybase1.ProvisionMethod, error)
func (*TestProvisionUI) DisplayAndPromptSecret ¶
func (u *TestProvisionUI) DisplayAndPromptSecret(_ context.Context, arg keybase1.DisplayAndPromptSecretArg) (keybase1.SecretResponse, error)
func (*TestProvisionUI) DisplaySecretExchanged ¶
func (u *TestProvisionUI) DisplaySecretExchanged(_ context.Context, _ int) error
func (*TestProvisionUI) PromptNewDeviceName ¶
func (u *TestProvisionUI) PromptNewDeviceName(_ context.Context, arg keybase1.PromptNewDeviceNameArg) (string, error)
func (*TestProvisionUI) ProvisioneeSuccess ¶
func (u *TestProvisionUI) ProvisioneeSuccess(_ context.Context, _ keybase1.ProvisioneeSuccessArg) error
func (*TestProvisionUI) ProvisionerSuccess ¶
func (u *TestProvisionUI) ProvisionerSuccess(_ context.Context, _ keybase1.ProvisionerSuccessArg) error
func (*TestProvisionUI) SwitchToGPGSignOK ¶
func (u *TestProvisionUI) SwitchToGPGSignOK(ctx context.Context, arg keybase1.SwitchToGPGSignOKArg) (bool, error)
type TlfMock ¶
func NewTlfMock ¶
func NewTlfMock(world *ChatMockWorld) *TlfMock
func (*TlfMock) AllCryptKeys ¶
func (*TlfMock) CompleteAndCanonicalizePrivateTlfName ¶
func (*TlfMock) DecryptionKey ¶
func (*TlfMock) EncryptionKey ¶
func (*TlfMock) EphemeralDecryptionKey ¶
func (*TlfMock) EphemeralEncryptionKey ¶
func (*TlfMock) LookupIDUntrusted ¶
func (*TlfMock) LookupName ¶
func (*TlfMock) PublicCanonicalTLFNameAndID ¶
Click to show internal directories.
Click to hide internal directories.