-
Notifications
You must be signed in to change notification settings - Fork 2
/
useragent_mock_test.go
54 lines (45 loc) · 1.63 KB
/
useragent_mock_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Code generated by MockGen. DO NOT EDIT.
// Source: useragent.go
//
// Generated by this command:
//
// mockgen -destination=useragent_mock_test.go -package=slackauth -source=useragent.go userAgentSetter
//
// Package slackauth is a generated GoMock package.
package slackauth
import (
reflect "reflect"
proto "github.com/go-rod/rod/lib/proto"
gomock "go.uber.org/mock/gomock"
)
// MockuserAgentSetter is a mock of userAgentSetter interface.
type MockuserAgentSetter struct {
ctrl *gomock.Controller
recorder *MockuserAgentSetterMockRecorder
}
// MockuserAgentSetterMockRecorder is the mock recorder for MockuserAgentSetter.
type MockuserAgentSetterMockRecorder struct {
mock *MockuserAgentSetter
}
// NewMockuserAgentSetter creates a new mock instance.
func NewMockuserAgentSetter(ctrl *gomock.Controller) *MockuserAgentSetter {
mock := &MockuserAgentSetter{ctrl: ctrl}
mock.recorder = &MockuserAgentSetterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockuserAgentSetter) EXPECT() *MockuserAgentSetterMockRecorder {
return m.recorder
}
// SetUserAgent mocks base method.
func (m *MockuserAgentSetter) SetUserAgent(req *proto.NetworkSetUserAgentOverride) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetUserAgent", req)
ret0, _ := ret[0].(error)
return ret0
}
// SetUserAgent indicates an expected call of SetUserAgent.
func (mr *MockuserAgentSetterMockRecorder) SetUserAgent(req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserAgent", reflect.TypeOf((*MockuserAgentSetter)(nil).SetUserAgent), req)
}