boulder/va/mock_gsb_test.go

75 lines
2.0 KiB
Go

// Automatically generated by MockGen. DO NOT EDIT!
// Source: ./va/gsb.go
package va
import (
gomock "github.com/golang/mock/gomock"
safebrowsing "github.com/google/safebrowsing"
context "golang.org/x/net/context"
)
// Mock of SafeBrowsing interface
type MockSafeBrowsing struct {
ctrl *gomock.Controller
recorder *_MockSafeBrowsingRecorder
}
// Recorder for MockSafeBrowsing (not exported)
type _MockSafeBrowsingRecorder struct {
mock *MockSafeBrowsing
}
func NewMockSafeBrowsing(ctrl *gomock.Controller) *MockSafeBrowsing {
mock := &MockSafeBrowsing{ctrl: ctrl}
mock.recorder = &_MockSafeBrowsingRecorder{mock}
return mock
}
func (_m *MockSafeBrowsing) EXPECT() *_MockSafeBrowsingRecorder {
return _m.recorder
}
func (_m *MockSafeBrowsing) IsListed(ctx context.Context, url string) (string, error) {
ret := _m.ctrl.Call(_m, "IsListed", ctx, url)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockSafeBrowsingRecorder) IsListed(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "IsListed", arg0, arg1)
}
// Mock of SafeBrowsingV4 interface
type MockSafeBrowsingV4 struct {
ctrl *gomock.Controller
recorder *_MockSafeBrowsingV4Recorder
}
// Recorder for MockSafeBrowsingV4 (not exported)
type _MockSafeBrowsingV4Recorder struct {
mock *MockSafeBrowsingV4
}
func NewMockSafeBrowsingV4(ctrl *gomock.Controller) *MockSafeBrowsingV4 {
mock := &MockSafeBrowsingV4{ctrl: ctrl}
mock.recorder = &_MockSafeBrowsingV4Recorder{mock}
return mock
}
func (_m *MockSafeBrowsingV4) EXPECT() *_MockSafeBrowsingV4Recorder {
return _m.recorder
}
func (_m *MockSafeBrowsingV4) LookupURLsContext(ctx context.Context, urls []string) ([][]safebrowsing.URLThreat, error) {
ret := _m.ctrl.Call(_m, "LookupURLsContext", ctx, urls)
ret0, _ := ret[0].([][]safebrowsing.URLThreat)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockSafeBrowsingV4Recorder) LookupURLsContext(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "LookupURLsContext", arg0, arg1)
}