github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/service/systemd/dbusapi_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/service/systemd (interfaces: DBusAPI)
     3  
     4  // Package systemd_test is a generated GoMock package.
     5  package systemd_test
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	dbus "github.com/coreos/go-systemd/dbus"
    11  	gomock "github.com/golang/mock/gomock"
    12  )
    13  
    14  // MockDBusAPI is a mock of DBusAPI interface
    15  type MockDBusAPI struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockDBusAPIMockRecorder
    18  }
    19  
    20  // MockDBusAPIMockRecorder is the mock recorder for MockDBusAPI
    21  type MockDBusAPIMockRecorder struct {
    22  	mock *MockDBusAPI
    23  }
    24  
    25  // NewMockDBusAPI creates a new mock instance
    26  func NewMockDBusAPI(ctrl *gomock.Controller) *MockDBusAPI {
    27  	mock := &MockDBusAPI{ctrl: ctrl}
    28  	mock.recorder = &MockDBusAPIMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockDBusAPI) EXPECT() *MockDBusAPIMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Close mocks base method
    38  func (m *MockDBusAPI) Close() {
    39  	m.ctrl.Call(m, "Close")
    40  }
    41  
    42  // Close indicates an expected call of Close
    43  func (mr *MockDBusAPIMockRecorder) Close() *gomock.Call {
    44  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDBusAPI)(nil).Close))
    45  }
    46  
    47  // DisableUnitFiles mocks base method
    48  func (m *MockDBusAPI) DisableUnitFiles(arg0 []string, arg1 bool) ([]dbus.DisableUnitFileChange, error) {
    49  	ret := m.ctrl.Call(m, "DisableUnitFiles", arg0, arg1)
    50  	ret0, _ := ret[0].([]dbus.DisableUnitFileChange)
    51  	ret1, _ := ret[1].(error)
    52  	return ret0, ret1
    53  }
    54  
    55  // DisableUnitFiles indicates an expected call of DisableUnitFiles
    56  func (mr *MockDBusAPIMockRecorder) DisableUnitFiles(arg0, arg1 interface{}) *gomock.Call {
    57  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableUnitFiles", reflect.TypeOf((*MockDBusAPI)(nil).DisableUnitFiles), arg0, arg1)
    58  }
    59  
    60  // EnableUnitFiles mocks base method
    61  func (m *MockDBusAPI) EnableUnitFiles(arg0 []string, arg1, arg2 bool) (bool, []dbus.EnableUnitFileChange, error) {
    62  	ret := m.ctrl.Call(m, "EnableUnitFiles", arg0, arg1, arg2)
    63  	ret0, _ := ret[0].(bool)
    64  	ret1, _ := ret[1].([]dbus.EnableUnitFileChange)
    65  	ret2, _ := ret[2].(error)
    66  	return ret0, ret1, ret2
    67  }
    68  
    69  // EnableUnitFiles indicates an expected call of EnableUnitFiles
    70  func (mr *MockDBusAPIMockRecorder) EnableUnitFiles(arg0, arg1, arg2 interface{}) *gomock.Call {
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableUnitFiles", reflect.TypeOf((*MockDBusAPI)(nil).EnableUnitFiles), arg0, arg1, arg2)
    72  }
    73  
    74  // GetUnitProperties mocks base method
    75  func (m *MockDBusAPI) GetUnitProperties(arg0 string) (map[string]interface{}, error) {
    76  	ret := m.ctrl.Call(m, "GetUnitProperties", arg0)
    77  	ret0, _ := ret[0].(map[string]interface{})
    78  	ret1, _ := ret[1].(error)
    79  	return ret0, ret1
    80  }
    81  
    82  // GetUnitProperties indicates an expected call of GetUnitProperties
    83  func (mr *MockDBusAPIMockRecorder) GetUnitProperties(arg0 interface{}) *gomock.Call {
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnitProperties", reflect.TypeOf((*MockDBusAPI)(nil).GetUnitProperties), arg0)
    85  }
    86  
    87  // GetUnitTypeProperties mocks base method
    88  func (m *MockDBusAPI) GetUnitTypeProperties(arg0, arg1 string) (map[string]interface{}, error) {
    89  	ret := m.ctrl.Call(m, "GetUnitTypeProperties", arg0, arg1)
    90  	ret0, _ := ret[0].(map[string]interface{})
    91  	ret1, _ := ret[1].(error)
    92  	return ret0, ret1
    93  }
    94  
    95  // GetUnitTypeProperties indicates an expected call of GetUnitTypeProperties
    96  func (mr *MockDBusAPIMockRecorder) GetUnitTypeProperties(arg0, arg1 interface{}) *gomock.Call {
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnitTypeProperties", reflect.TypeOf((*MockDBusAPI)(nil).GetUnitTypeProperties), arg0, arg1)
    98  }
    99  
   100  // LinkUnitFiles mocks base method
   101  func (m *MockDBusAPI) LinkUnitFiles(arg0 []string, arg1, arg2 bool) ([]dbus.LinkUnitFileChange, error) {
   102  	ret := m.ctrl.Call(m, "LinkUnitFiles", arg0, arg1, arg2)
   103  	ret0, _ := ret[0].([]dbus.LinkUnitFileChange)
   104  	ret1, _ := ret[1].(error)
   105  	return ret0, ret1
   106  }
   107  
   108  // LinkUnitFiles indicates an expected call of LinkUnitFiles
   109  func (mr *MockDBusAPIMockRecorder) LinkUnitFiles(arg0, arg1, arg2 interface{}) *gomock.Call {
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LinkUnitFiles", reflect.TypeOf((*MockDBusAPI)(nil).LinkUnitFiles), arg0, arg1, arg2)
   111  }
   112  
   113  // ListUnits mocks base method
   114  func (m *MockDBusAPI) ListUnits() ([]dbus.UnitStatus, error) {
   115  	ret := m.ctrl.Call(m, "ListUnits")
   116  	ret0, _ := ret[0].([]dbus.UnitStatus)
   117  	ret1, _ := ret[1].(error)
   118  	return ret0, ret1
   119  }
   120  
   121  // ListUnits indicates an expected call of ListUnits
   122  func (mr *MockDBusAPIMockRecorder) ListUnits() *gomock.Call {
   123  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUnits", reflect.TypeOf((*MockDBusAPI)(nil).ListUnits))
   124  }
   125  
   126  // Reload mocks base method
   127  func (m *MockDBusAPI) Reload() error {
   128  	ret := m.ctrl.Call(m, "Reload")
   129  	ret0, _ := ret[0].(error)
   130  	return ret0
   131  }
   132  
   133  // Reload indicates an expected call of Reload
   134  func (mr *MockDBusAPIMockRecorder) Reload() *gomock.Call {
   135  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reload", reflect.TypeOf((*MockDBusAPI)(nil).Reload))
   136  }
   137  
   138  // StartUnit mocks base method
   139  func (m *MockDBusAPI) StartUnit(arg0, arg1 string, arg2 chan<- string) (int, error) {
   140  	ret := m.ctrl.Call(m, "StartUnit", arg0, arg1, arg2)
   141  	ret0, _ := ret[0].(int)
   142  	ret1, _ := ret[1].(error)
   143  	return ret0, ret1
   144  }
   145  
   146  // StartUnit indicates an expected call of StartUnit
   147  func (mr *MockDBusAPIMockRecorder) StartUnit(arg0, arg1, arg2 interface{}) *gomock.Call {
   148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartUnit", reflect.TypeOf((*MockDBusAPI)(nil).StartUnit), arg0, arg1, arg2)
   149  }
   150  
   151  // StopUnit mocks base method
   152  func (m *MockDBusAPI) StopUnit(arg0, arg1 string, arg2 chan<- string) (int, error) {
   153  	ret := m.ctrl.Call(m, "StopUnit", arg0, arg1, arg2)
   154  	ret0, _ := ret[0].(int)
   155  	ret1, _ := ret[1].(error)
   156  	return ret0, ret1
   157  }
   158  
   159  // StopUnit indicates an expected call of StopUnit
   160  func (mr *MockDBusAPIMockRecorder) StopUnit(arg0, arg1, arg2 interface{}) *gomock.Call {
   161  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopUnit", reflect.TypeOf((*MockDBusAPI)(nil).StopUnit), arg0, arg1, arg2)
   162  }