25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

106 lines
4.2 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. // Code generated by MockGen. DO NOT EDIT.
  15. // Source: google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2 (interfaces: ProfilerServiceClient)
  16. // Package mocks is a generated GoMock package.
  17. package mocks
  18. import (
  19. "context"
  20. reflect "reflect"
  21. gomock "github.com/golang/mock/gomock"
  22. v2 "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2"
  23. grpc "google.golang.org/grpc"
  24. )
  25. // MockProfilerServiceClient is a mock of ProfilerServiceClient interface
  26. type MockProfilerServiceClient struct {
  27. ctrl *gomock.Controller
  28. recorder *MockProfilerServiceClientMockRecorder
  29. }
  30. // MockProfilerServiceClientMockRecorder is the mock recorder for MockProfilerServiceClient
  31. type MockProfilerServiceClientMockRecorder struct {
  32. mock *MockProfilerServiceClient
  33. }
  34. // NewMockProfilerServiceClient creates a new mock instance
  35. func NewMockProfilerServiceClient(ctrl *gomock.Controller) *MockProfilerServiceClient {
  36. mock := &MockProfilerServiceClient{ctrl: ctrl}
  37. mock.recorder = &MockProfilerServiceClientMockRecorder{mock}
  38. return mock
  39. }
  40. // EXPECT returns an object that allows the caller to indicate expected use
  41. func (m *MockProfilerServiceClient) EXPECT() *MockProfilerServiceClientMockRecorder {
  42. return m.recorder
  43. }
  44. // CreateOfflineProfile mocks base method
  45. func (m *MockProfilerServiceClient) CreateOfflineProfile(arg0 context.Context, arg1 *v2.CreateOfflineProfileRequest, arg2 ...grpc.CallOption) (*v2.Profile, error) {
  46. varargs := []interface{}{arg0, arg1}
  47. for _, a := range arg2 {
  48. varargs = append(varargs, a)
  49. }
  50. ret := m.ctrl.Call(m, "CreateOfflineProfile", varargs...)
  51. ret0, _ := ret[0].(*v2.Profile)
  52. ret1, _ := ret[1].(error)
  53. return ret0, ret1
  54. }
  55. // CreateOfflineProfile indicates an expected call of CreateOfflineProfile
  56. func (mr *MockProfilerServiceClientMockRecorder) CreateOfflineProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  57. varargs := append([]interface{}{arg0, arg1}, arg2...)
  58. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOfflineProfile", reflect.TypeOf((*MockProfilerServiceClient)(nil).CreateOfflineProfile), varargs...)
  59. }
  60. // CreateProfile mocks base method
  61. func (m *MockProfilerServiceClient) CreateProfile(arg0 context.Context, arg1 *v2.CreateProfileRequest, arg2 ...grpc.CallOption) (*v2.Profile, error) {
  62. varargs := []interface{}{arg0, arg1}
  63. for _, a := range arg2 {
  64. varargs = append(varargs, a)
  65. }
  66. ret := m.ctrl.Call(m, "CreateProfile", varargs...)
  67. ret0, _ := ret[0].(*v2.Profile)
  68. ret1, _ := ret[1].(error)
  69. return ret0, ret1
  70. }
  71. // CreateProfile indicates an expected call of CreateProfile
  72. func (mr *MockProfilerServiceClientMockRecorder) CreateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  73. varargs := append([]interface{}{arg0, arg1}, arg2...)
  74. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProfile", reflect.TypeOf((*MockProfilerServiceClient)(nil).CreateProfile), varargs...)
  75. }
  76. // UpdateProfile mocks base method
  77. func (m *MockProfilerServiceClient) UpdateProfile(arg0 context.Context, arg1 *v2.UpdateProfileRequest, arg2 ...grpc.CallOption) (*v2.Profile, error) {
  78. varargs := []interface{}{arg0, arg1}
  79. for _, a := range arg2 {
  80. varargs = append(varargs, a)
  81. }
  82. ret := m.ctrl.Call(m, "UpdateProfile", varargs...)
  83. ret0, _ := ret[0].(*v2.Profile)
  84. ret1, _ := ret[1].(error)
  85. return ret0, ret1
  86. }
  87. // UpdateProfile indicates an expected call of UpdateProfile
  88. func (mr *MockProfilerServiceClientMockRecorder) UpdateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  89. varargs := append([]interface{}{arg0, arg1}, arg2...)
  90. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProfile", reflect.TypeOf((*MockProfilerServiceClient)(nil).UpdateProfile), varargs...)
  91. }