File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
vector/src/test/java/im/vector/app Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 17
17
package im.vector.app.core.pushers
18
18
19
19
import im.vector.app.R
20
+ import im.vector.app.features.mdm.NoOpMdmService
20
21
import im.vector.app.test.fakes.FakeActiveSessionHolder
21
22
import im.vector.app.test.fakes.FakeAppNameProvider
22
23
import im.vector.app.test.fakes.FakeGetDeviceInfoUseCase
@@ -54,6 +55,7 @@ class PushersManagerTest {
54
55
stringProvider.instance,
55
56
appNameProvider,
56
57
getDeviceInfoUseCase,
58
+ NoOpMdmService (),
57
59
)
58
60
59
61
@Test
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023 New Vector Ltd
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package im.vector.app.features.mdm
18
+
19
+ import android.content.Context
20
+
21
+ class NoOpMdmService : MdmService {
22
+ override fun registerListener (context : Context , onChangedListener : () -> Unit ) = Unit
23
+ override fun unregisterListener (context : Context ) = Unit
24
+ override fun getData (mdmData : MdmData ): String? = null
25
+ }
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import im.vector.app.features.login.LoginMode
26
26
import im.vector.app.features.login.ReAuthHelper
27
27
import im.vector.app.features.login.ServerType
28
28
import im.vector.app.features.login.SignMode
29
+ import im.vector.app.features.mdm.NoOpMdmService
29
30
import im.vector.app.features.onboarding.RegistrationStateFixture.aRegistrationState
30
31
import im.vector.app.features.onboarding.StartAuthenticationFlowUseCase.StartAuthenticationResult
31
32
import im.vector.app.test.TestBuildVersionSdkIntProvider
@@ -1121,6 +1122,7 @@ class OnboardingViewModelTest {
1121
1122
fakeRegistrationActionHandler.instance,
1122
1123
TestBuildVersionSdkIntProvider ().also { it.value = Build .VERSION_CODES .O },
1123
1124
fakeConfigureAndStartSessionUseCase,
1125
+ NoOpMdmService ()
1124
1126
).also {
1125
1127
viewModel = it
1126
1128
initialState = state
You can’t perform that action at this time.
0 commit comments