You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

79 regels
2.8 KiB

  1. // Copyright 2017 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Automatically generated by MockGen. DO NOT EDIT!
  15. // Source: google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2 (interfaces: ProfilerServiceClient)
  16. package mocks
  17. import (
  18. gomock "github.com/golang/mock/gomock"
  19. context "golang.org/x/net/context"
  20. v2 "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2"
  21. grpc "google.golang.org/grpc"
  22. )
  23. // Mock of ProfilerServiceClient interface
  24. type MockProfilerServiceClient struct {
  25. ctrl *gomock.Controller
  26. recorder *_MockProfilerServiceClientRecorder
  27. }
  28. // Recorder for MockProfilerServiceClient (not exported)
  29. type _MockProfilerServiceClientRecorder struct {
  30. mock *MockProfilerServiceClient
  31. }
  32. func NewMockProfilerServiceClient(ctrl *gomock.Controller) *MockProfilerServiceClient {
  33. mock := &MockProfilerServiceClient{ctrl: ctrl}
  34. mock.recorder = &_MockProfilerServiceClientRecorder{mock}
  35. return mock
  36. }
  37. func (_m *MockProfilerServiceClient) EXPECT() *_MockProfilerServiceClientRecorder {
  38. return _m.recorder
  39. }
  40. func (_m *MockProfilerServiceClient) CreateProfile(_param0 context.Context, _param1 *v2.CreateProfileRequest, _param2 ...grpc.CallOption) (*v2.Profile, error) {
  41. _s := []interface{}{_param0, _param1}
  42. for _, _x := range _param2 {
  43. _s = append(_s, _x)
  44. }
  45. ret := _m.ctrl.Call(_m, "CreateProfile", _s...)
  46. ret0, _ := ret[0].(*v2.Profile)
  47. ret1, _ := ret[1].(error)
  48. return ret0, ret1
  49. }
  50. func (_mr *_MockProfilerServiceClientRecorder) CreateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  51. _s := append([]interface{}{arg0, arg1}, arg2...)
  52. return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateProfile", _s...)
  53. }
  54. func (_m *MockProfilerServiceClient) UpdateProfile(_param0 context.Context, _param1 *v2.UpdateProfileRequest, _param2 ...grpc.CallOption) (*v2.Profile, error) {
  55. _s := []interface{}{_param0, _param1}
  56. for _, _x := range _param2 {
  57. _s = append(_s, _x)
  58. }
  59. ret := _m.ctrl.Call(_m, "UpdateProfile", _s...)
  60. ret0, _ := ret[0].(*v2.Profile)
  61. ret1, _ := ret[1].(error)
  62. return ret0, ret1
  63. }
  64. func (_mr *_MockProfilerServiceClientRecorder) UpdateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  65. _s := append([]interface{}{arg0, arg1}, arg2...)
  66. return _mr.mock.ctrl.RecordCall(_mr.mock, "UpdateProfile", _s...)
  67. }