summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/androidTest
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson@mullvad.net>2024-07-25 14:33:50 +0200
committerDavid Göransson <david.goransson@mullvad.net>2024-07-25 14:40:25 +0200
commit2e2ab93340ae05fda8446a3e74f41dd1276789be (patch)
treed5d5003f6050b80ed2b9bf6cb28a05ae2ce850d9 /android/app/src/androidTest
parent5c24fc35aa8369d2d49767dca73ce8ae391a11e0 (diff)
downloadmullvadvpn-2e2ab93340ae05fda8446a3e74f41dd1276789be.tar.xz
mullvadvpn-2e2ab93340ae05fda8446a3e74f41dd1276789be.zip
Convert select location into flat LazyColumn
Diffstat (limited to 'android/app/src/androidTest')
-rw-r--r--android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/data/DummyRelayItems.kt26
1 files changed, 14 insertions, 12 deletions
diff --git a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/data/DummyRelayItems.kt b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/data/DummyRelayItems.kt
index 0218e06afd..052f2d897a 100644
--- a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/data/DummyRelayItems.kt
+++ b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/data/DummyRelayItems.kt
@@ -40,29 +40,25 @@ private val DUMMY_RELAY_2 =
private val DUMMY_RELAY_CITY_1 =
RelayItem.Location.City(
name = "Relay City 1",
- id = GeoLocationId.City(countryCode = GeoLocationId.Country("RCo1"), cityCode = "RCi1"),
+ id = GeoLocationId.City(country = GeoLocationId.Country("RCo1"), code = "RCi1"),
relays = listOf(DUMMY_RELAY_1),
- expanded = false
)
private val DUMMY_RELAY_CITY_2 =
RelayItem.Location.City(
name = "Relay City 2",
- id = GeoLocationId.City(countryCode = GeoLocationId.Country("RCo2"), cityCode = "RCi2"),
+ id = GeoLocationId.City(country = GeoLocationId.Country("RCo2"), code = "RCi2"),
relays = listOf(DUMMY_RELAY_2),
- expanded = false
)
private val DUMMY_RELAY_COUNTRY_1 =
RelayItem.Location.Country(
name = "Relay Country 1",
id = GeoLocationId.Country("RCo1"),
- expanded = false,
cities = listOf(DUMMY_RELAY_CITY_1)
)
private val DUMMY_RELAY_COUNTRY_2 =
RelayItem.Location.Country(
name = "Relay Country 2",
id = GeoLocationId.Country("RCo2"),
- expanded = false,
cities = listOf(DUMMY_RELAY_CITY_2)
)
@@ -80,15 +76,21 @@ val DUMMY_RELAY_LIST =
val DUMMY_RELAY_ITEM_CUSTOM_LISTS =
listOf(
RelayItem.CustomList(
- customListName = CustomListName.fromString("First list"),
- expanded = false,
- id = CustomListId("1"),
+ customList =
+ CustomList(
+ name = CustomListName.fromString("First list"),
+ id = CustomListId("1"),
+ locations = emptyList()
+ ),
locations = DUMMY_RELAY_COUNTRIES
),
RelayItem.CustomList(
- customListName = CustomListName.fromString("Empty list"),
- expanded = false,
- id = CustomListId("2"),
+ customList =
+ CustomList(
+ name = CustomListName.fromString("Empty list"),
+ id = CustomListId("2"),
+ locations = emptyList()
+ ),
locations = emptyList()
)
)