# TestDelegateInvoker

Artifact: [androidx.car.app:app-testing](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/testing/TestDelegateInvoker.kt+class:androidx.car.app.testing.TestDelegateInvoker) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)

*** ** * ** ***


```
object TestDelegateInvoker
```

<br />

*** ** * ** ***

Provides a simplified interface for invoking AIDL/delegate APIs in tests

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/car/app/serialization/ListDelegate<T>.https://developer.android.com/reference/kotlin/androidx/car/app/testing/TestDelegateInvoker#(androidx.car.app.serialization.ListDelegate).requestAllItemsForTest()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/car/app/serialization/ListDelegate<T>.https://developer.android.com/reference/kotlin/androidx/car/app/testing/TestDelegateInvoker#(androidx.car.app.serialization.ListDelegate).requestItemRangeForTest(kotlin.Int,kotlin.Int)( startIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, endIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

## Public functions

### ListDelegate.requestAllItemsForTest

Artifact: [androidx.car.app:app-testing](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/testing/TestDelegateInvoker.kt+function:requestAllItemsForTest)

```
fun <T : Any?> ListDelegate<T>.requestAllItemsForTest(): List<T>
```

### ListDelegate.requestItemRangeForTest

Artifact: [androidx.car.app:app-testing](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/testing/TestDelegateInvoker.kt+function:requestItemRangeForTest)

```
fun <T : Any?> ListDelegate<T>.requestItemRangeForTest(
    startIndex: Int,
    endIndex: Int
): List<T>
```