github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/mock_sealing_manager_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/TugasAkhir-QUIC/quic-go (interfaces: SealingManager) 3 // 4 // Generated by this command: 5 // 6 // mockgen.exe -typed -build_flags=-tags=gomock -package quic -self_package github.com/TugasAkhir-QUIC/quic-go -destination mock_sealing_manager_test.go github.com/TugasAkhir-QUIC/quic-go SealingManager 7 // 8 // Package quic is a generated GoMock package. 9 package quic 10 11 import ( 12 reflect "reflect" 13 14 handshake "github.com/TugasAkhir-QUIC/quic-go/internal/handshake" 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockSealingManager is a mock of SealingManager interface. 19 type MockSealingManager struct { 20 ctrl *gomock.Controller 21 recorder *MockSealingManagerMockRecorder 22 } 23 24 // MockSealingManagerMockRecorder is the mock recorder for MockSealingManager. 25 type MockSealingManagerMockRecorder struct { 26 mock *MockSealingManager 27 } 28 29 // NewMockSealingManager creates a new mock instance. 30 func NewMockSealingManager(ctrl *gomock.Controller) *MockSealingManager { 31 mock := &MockSealingManager{ctrl: ctrl} 32 mock.recorder = &MockSealingManagerMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockSealingManager) EXPECT() *MockSealingManagerMockRecorder { 38 return m.recorder 39 } 40 41 // Get0RTTSealer mocks base method. 42 func (m *MockSealingManager) Get0RTTSealer() (handshake.LongHeaderSealer, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Get0RTTSealer") 45 ret0, _ := ret[0].(handshake.LongHeaderSealer) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // Get0RTTSealer indicates an expected call of Get0RTTSealer. 51 func (mr *MockSealingManagerMockRecorder) Get0RTTSealer() *SealingManagerGet0RTTSealerCall { 52 mr.mock.ctrl.T.Helper() 53 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get0RTTSealer", reflect.TypeOf((*MockSealingManager)(nil).Get0RTTSealer)) 54 return &SealingManagerGet0RTTSealerCall{Call: call} 55 } 56 57 // SealingManagerGet0RTTSealerCall wrap *gomock.Call 58 type SealingManagerGet0RTTSealerCall struct { 59 *gomock.Call 60 } 61 62 // Return rewrite *gomock.Call.Return 63 func (c *SealingManagerGet0RTTSealerCall) Return(arg0 handshake.LongHeaderSealer, arg1 error) *SealingManagerGet0RTTSealerCall { 64 c.Call = c.Call.Return(arg0, arg1) 65 return c 66 } 67 68 // Do rewrite *gomock.Call.Do 69 func (c *SealingManagerGet0RTTSealerCall) Do(f func() (handshake.LongHeaderSealer, error)) *SealingManagerGet0RTTSealerCall { 70 c.Call = c.Call.Do(f) 71 return c 72 } 73 74 // DoAndReturn rewrite *gomock.Call.DoAndReturn 75 func (c *SealingManagerGet0RTTSealerCall) DoAndReturn(f func() (handshake.LongHeaderSealer, error)) *SealingManagerGet0RTTSealerCall { 76 c.Call = c.Call.DoAndReturn(f) 77 return c 78 } 79 80 // Get1RTTSealer mocks base method. 81 func (m *MockSealingManager) Get1RTTSealer() (handshake.ShortHeaderSealer, error) { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "Get1RTTSealer") 84 ret0, _ := ret[0].(handshake.ShortHeaderSealer) 85 ret1, _ := ret[1].(error) 86 return ret0, ret1 87 } 88 89 // Get1RTTSealer indicates an expected call of Get1RTTSealer. 90 func (mr *MockSealingManagerMockRecorder) Get1RTTSealer() *SealingManagerGet1RTTSealerCall { 91 mr.mock.ctrl.T.Helper() 92 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get1RTTSealer", reflect.TypeOf((*MockSealingManager)(nil).Get1RTTSealer)) 93 return &SealingManagerGet1RTTSealerCall{Call: call} 94 } 95 96 // SealingManagerGet1RTTSealerCall wrap *gomock.Call 97 type SealingManagerGet1RTTSealerCall struct { 98 *gomock.Call 99 } 100 101 // Return rewrite *gomock.Call.Return 102 func (c *SealingManagerGet1RTTSealerCall) Return(arg0 handshake.ShortHeaderSealer, arg1 error) *SealingManagerGet1RTTSealerCall { 103 c.Call = c.Call.Return(arg0, arg1) 104 return c 105 } 106 107 // Do rewrite *gomock.Call.Do 108 func (c *SealingManagerGet1RTTSealerCall) Do(f func() (handshake.ShortHeaderSealer, error)) *SealingManagerGet1RTTSealerCall { 109 c.Call = c.Call.Do(f) 110 return c 111 } 112 113 // DoAndReturn rewrite *gomock.Call.DoAndReturn 114 func (c *SealingManagerGet1RTTSealerCall) DoAndReturn(f func() (handshake.ShortHeaderSealer, error)) *SealingManagerGet1RTTSealerCall { 115 c.Call = c.Call.DoAndReturn(f) 116 return c 117 } 118 119 // GetHandshakeSealer mocks base method. 120 func (m *MockSealingManager) GetHandshakeSealer() (handshake.LongHeaderSealer, error) { 121 m.ctrl.T.Helper() 122 ret := m.ctrl.Call(m, "GetHandshakeSealer") 123 ret0, _ := ret[0].(handshake.LongHeaderSealer) 124 ret1, _ := ret[1].(error) 125 return ret0, ret1 126 } 127 128 // GetHandshakeSealer indicates an expected call of GetHandshakeSealer. 129 func (mr *MockSealingManagerMockRecorder) GetHandshakeSealer() *SealingManagerGetHandshakeSealerCall { 130 mr.mock.ctrl.T.Helper() 131 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHandshakeSealer", reflect.TypeOf((*MockSealingManager)(nil).GetHandshakeSealer)) 132 return &SealingManagerGetHandshakeSealerCall{Call: call} 133 } 134 135 // SealingManagerGetHandshakeSealerCall wrap *gomock.Call 136 type SealingManagerGetHandshakeSealerCall struct { 137 *gomock.Call 138 } 139 140 // Return rewrite *gomock.Call.Return 141 func (c *SealingManagerGetHandshakeSealerCall) Return(arg0 handshake.LongHeaderSealer, arg1 error) *SealingManagerGetHandshakeSealerCall { 142 c.Call = c.Call.Return(arg0, arg1) 143 return c 144 } 145 146 // Do rewrite *gomock.Call.Do 147 func (c *SealingManagerGetHandshakeSealerCall) Do(f func() (handshake.LongHeaderSealer, error)) *SealingManagerGetHandshakeSealerCall { 148 c.Call = c.Call.Do(f) 149 return c 150 } 151 152 // DoAndReturn rewrite *gomock.Call.DoAndReturn 153 func (c *SealingManagerGetHandshakeSealerCall) DoAndReturn(f func() (handshake.LongHeaderSealer, error)) *SealingManagerGetHandshakeSealerCall { 154 c.Call = c.Call.DoAndReturn(f) 155 return c 156 } 157 158 // GetInitialSealer mocks base method. 159 func (m *MockSealingManager) GetInitialSealer() (handshake.LongHeaderSealer, error) { 160 m.ctrl.T.Helper() 161 ret := m.ctrl.Call(m, "GetInitialSealer") 162 ret0, _ := ret[0].(handshake.LongHeaderSealer) 163 ret1, _ := ret[1].(error) 164 return ret0, ret1 165 } 166 167 // GetInitialSealer indicates an expected call of GetInitialSealer. 168 func (mr *MockSealingManagerMockRecorder) GetInitialSealer() *SealingManagerGetInitialSealerCall { 169 mr.mock.ctrl.T.Helper() 170 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInitialSealer", reflect.TypeOf((*MockSealingManager)(nil).GetInitialSealer)) 171 return &SealingManagerGetInitialSealerCall{Call: call} 172 } 173 174 // SealingManagerGetInitialSealerCall wrap *gomock.Call 175 type SealingManagerGetInitialSealerCall struct { 176 *gomock.Call 177 } 178 179 // Return rewrite *gomock.Call.Return 180 func (c *SealingManagerGetInitialSealerCall) Return(arg0 handshake.LongHeaderSealer, arg1 error) *SealingManagerGetInitialSealerCall { 181 c.Call = c.Call.Return(arg0, arg1) 182 return c 183 } 184 185 // Do rewrite *gomock.Call.Do 186 func (c *SealingManagerGetInitialSealerCall) Do(f func() (handshake.LongHeaderSealer, error)) *SealingManagerGetInitialSealerCall { 187 c.Call = c.Call.Do(f) 188 return c 189 } 190 191 // DoAndReturn rewrite *gomock.Call.DoAndReturn 192 func (c *SealingManagerGetInitialSealerCall) DoAndReturn(f func() (handshake.LongHeaderSealer, error)) *SealingManagerGetInitialSealerCall { 193 c.Call = c.Call.DoAndReturn(f) 194 return c 195 }