Add device capability and get authenticated device list
[platform/core/system/edge-orchestration.git] / patches / mocks_configuremgr.patch
1 diff --git a/src/controller/configuremgr/mocks/mocks_configuremgr.go b/src/controller/configuremgr/mocks/mocks_configuremgr.go
2 index 250aabf..654cf14 100644
3 --- a/src/controller/configuremgr/mocks/mocks_configuremgr.go
4 +++ b/src/controller/configuremgr/mocks/mocks_configuremgr.go
5 @@ -1,31 +1,14 @@
6 -/*******************************************************************************
7 - * Copyright 2019 Samsung Electronics All Rights Reserved.
8 - *
9 - * Licensed under the Apache License, Version 2.0 (the "License");
10 - * you may not use this file except in compliance with the License.
11 - * You may obtain a copy of the License at
12 - *
13 - * http://www.apache.org/licenses/LICENSE-2.0
14 - *
15 - * Unless required by applicable law or agreed to in writing, software
16 - * distributed under the License is distributed on an "AS IS" BASIS,
17 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 - * See the License for the specific language governing permissions and
19 - * limitations under the License.
20 - *
21 - *******************************************************************************/
22 -
23  // Code generated by MockGen. DO NOT EDIT.
24 -// Source: configuremgr.go
25 +// Source: controller/configuremgr (interfaces: Notifier,Watcher,CapabilityImpl)
26  
27  // Package mocks is a generated GoMock package.
28  package mocks
29  
30  import (
31 +       configuremgrtypes "common/types/configuremgrtypes"
32         configuremgr "controller/configuremgr"
33 -       reflect "reflect"
34 -
35         gomock "github.com/golang/mock/gomock"
36 +       reflect "reflect"
37  )
38  
39  // MockNotifier is a mock of Notifier interface
40 @@ -52,15 +35,15 @@ func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder {
41  }
42  
43  // Notify mocks base method
44 -func (m *MockNotifier) Notify(serviceName string) {
45 +func (m *MockNotifier) Notify(arg0 configuremgrtypes.ServiceInfo) {
46         m.ctrl.T.Helper()
47 -       m.ctrl.Call(m, "Notify", serviceName)
48 +       m.ctrl.Call(m, "Notify", arg0)
49  }
50  
51  // Notify indicates an expected call of Notify
52 -func (mr *MockNotifierMockRecorder) Notify(serviceName interface{}) *gomock.Call {
53 +func (mr *MockNotifierMockRecorder) Notify(arg0 interface{}) *gomock.Call {
54         mr.mock.ctrl.T.Helper()
55 -       return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockNotifier)(nil).Notify), serviceName)
56 +       return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockNotifier)(nil).Notify), arg0)
57  }
58  
59  // MockWatcher is a mock of Watcher interface
60 @@ -87,13 +70,65 @@ func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder {
61  }
62  
63  // Watch mocks base method
64 -func (m *MockWatcher) Watch(notifier configuremgr.Notifier) {
65 +func (m *MockWatcher) Watch(arg0 configuremgr.Notifier) {
66         m.ctrl.T.Helper()
67 -       m.ctrl.Call(m, "Watch", notifier)
68 +       m.ctrl.Call(m, "Watch", arg0)
69  }
70  
71  // Watch indicates an expected call of Watch
72 -func (mr *MockWatcherMockRecorder) Watch(notifier interface{}) *gomock.Call {
73 +func (mr *MockWatcherMockRecorder) Watch(arg0 interface{}) *gomock.Call {
74 +       mr.mock.ctrl.T.Helper()
75 +       return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockWatcher)(nil).Watch), arg0)
76 +}
77 +
78 +// MockCapabilityImpl is a mock of CapabilityImpl interface
79 +type MockCapabilityImpl struct {
80 +       ctrl     *gomock.Controller
81 +       recorder *MockCapabilityImplMockRecorder
82 +}
83 +
84 +// MockCapabilityImplMockRecorder is the mock recorder for MockCapabilityImpl
85 +type MockCapabilityImplMockRecorder struct {
86 +       mock *MockCapabilityImpl
87 +}
88 +
89 +// NewMockCapabilityImpl creates a new mock instance
90 +func NewMockCapabilityImpl(ctrl *gomock.Controller) *MockCapabilityImpl {
91 +       mock := &MockCapabilityImpl{ctrl: ctrl}
92 +       mock.recorder = &MockCapabilityImplMockRecorder{mock}
93 +       return mock
94 +}
95 +
96 +// EXPECT returns an object that allows the caller to indicate expected use
97 +func (m *MockCapabilityImpl) EXPECT() *MockCapabilityImplMockRecorder {
98 +       return m.recorder
99 +}
100 +
101 +// ReadCapability mocks base method
102 +func (m *MockCapabilityImpl) ReadCapability(arg0 string) (string, error) {
103 +       m.ctrl.T.Helper()
104 +       ret := m.ctrl.Call(m, "ReadCapability", arg0)
105 +       ret0, _ := ret[0].(string)
106 +       ret1, _ := ret[1].(error)
107 +       return ret0, ret1
108 +}
109 +
110 +// ReadCapability indicates an expected call of ReadCapability
111 +func (mr *MockCapabilityImplMockRecorder) ReadCapability(arg0 interface{}) *gomock.Call {
112 +       mr.mock.ctrl.T.Helper()
113 +       return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCapability", reflect.TypeOf((*MockCapabilityImpl)(nil).ReadCapability), arg0)
114 +}
115 +
116 +// WriteCapability mocks base method
117 +func (m *MockCapabilityImpl) WriteCapability(arg0 string) error {
118 +       m.ctrl.T.Helper()
119 +       ret := m.ctrl.Call(m, "WriteCapability", arg0)
120 +       ret0, _ := ret[0].(error)
121 +       return ret0
122 +}
123 +
124 +// WriteCapability indicates an expected call of WriteCapability
125 +func (mr *MockCapabilityImplMockRecorder) WriteCapability(arg0 interface{}) *gomock.Call {
126         mr.mock.ctrl.T.Helper()
127 -       return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockWatcher)(nil).Watch), notifier)
128 +       return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteCapability", reflect.TypeOf((*MockCapabilityImpl)(nil).WriteCapability), arg0)
129  }