#23905 - Update with upstream nanomdm changes up to https://github.com/micromdm/nanomdm/tree/825f2979a2dc28c6cc57bb62aff16737978bd90e - Removed PostgeSQL folder from our nanomdm - Added nanomdm MySQL test job to our CI # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
30 lines
638 B
Go
30 lines
638 B
Go
// Automatically generated by mockimpl. DO NOT EDIT!
|
|
|
|
package mock
|
|
|
|
import (
|
|
"context"
|
|
"sync"
|
|
|
|
"github.com/fleetdm/fleet/v4/server/mdm/nanomdm/mdm"
|
|
"github.com/fleetdm/fleet/v4/server/mdm/nanomdm/push"
|
|
)
|
|
|
|
var _ push.PushProvider = (*APNSPushProvider)(nil)
|
|
|
|
type PushFunc func(p0 context.Context, p1 []*mdm.Push) (map[string]*push.Response, error)
|
|
|
|
type APNSPushProvider struct {
|
|
PushFunc PushFunc
|
|
PushFuncInvoked bool
|
|
|
|
mu sync.Mutex
|
|
}
|
|
|
|
func (s *APNSPushProvider) Push(p0 context.Context, p1 []*mdm.Push) (map[string]*push.Response, error) {
|
|
s.mu.Lock()
|
|
s.PushFuncInvoked = true
|
|
s.mu.Unlock()
|
|
return s.PushFunc(p0, p1)
|
|
}
|