1 /*
2  * Copyright 2024 The Android Open Source Project
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 com.android.systemui.education.domain.interactor
18 
19 import android.hardware.input.InputManager
20 import com.android.systemui.education.ContextualEducationMetricsLogger
21 import com.android.systemui.education.data.repository.fakeEduClock
22 import com.android.systemui.inputdevice.data.repository.UserInputDeviceRepository
23 import com.android.systemui.inputdevice.tutorial.tutorialSchedulerRepository
24 import com.android.systemui.keyboard.data.repository.keyboardRepository
25 import com.android.systemui.kosmos.Kosmos
26 import com.android.systemui.kosmos.testDispatcher
27 import com.android.systemui.kosmos.testScope
28 import com.android.systemui.recents.OverviewProxyService
29 import com.android.systemui.touchpad.data.repository.touchpadRepository
30 import com.android.systemui.user.data.repository.userRepository
31 import org.mockito.kotlin.mock
32 
33 var Kosmos.keyboardTouchpadEduInteractor by
<lambda>null34     Kosmos.Fixture {
35         KeyboardTouchpadEduInteractor(
36             backgroundScope = testScope.backgroundScope,
37             contextualEducationInteractor = contextualEducationInteractor,
38             userInputDeviceRepository =
39                 UserInputDeviceRepository(
40                     testDispatcher,
41                     keyboardRepository,
42                     touchpadRepository,
43                     userRepository,
44                 ),
45             tutorialRepository = tutorialSchedulerRepository,
46             overviewProxyService = mockOverviewProxyService,
47             metricsLogger = mockEduMetricsLogger,
48             clock = fakeEduClock,
49         )
50     }
51 
<lambda>null52 var Kosmos.mockEduMetricsLogger by Kosmos.Fixture { mock<ContextualEducationMetricsLogger>() }
<lambda>null53 var Kosmos.mockOverviewProxyService by Kosmos.Fixture { mock<OverviewProxyService>() }
<lambda>null54 var Kosmos.mockEduInputManager by Kosmos.Fixture { mock<InputManager>() }
55