Skip to content

Commit

Permalink
Extend test case for AirPods Pro 2 (USB-C)
Browse files Browse the repository at this point in the history
Closes #164
  • Loading branch information
d4rken committed Sep 24, 2023
1 parent ec74479 commit 6b0a1fc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,28 @@ class AirPodsPro2UsbcTest : BaseAirPodsTest() {
model shouldBe PodDevice.Model.AIRPODS_PRO2_USBC
}
}

@Test
fun `AirPods Pro 2 with USB-C - via #164 - in case`() = runTest {
create<AirPodsPro2Usbc>("07 19 01 24 20 53 AA 98 32 00 05 49 0A B8 BF 8E 29 D8 70 12 0D A7 0C CE 77 56 00") {

isLeftPodMicrophone shouldBe true
isRightPodMicrophone shouldBe false

isLeftPodInEar shouldBe true
isRightPodInEar shouldBe false

batteryLeftPodPercent shouldBe 1f
batteryRightPodPercent shouldBe 1f

isCaseCharging shouldBe false
isRightPodCharging shouldBe true
isLeftPodCharging shouldBe false
batteryCasePercent shouldBe 0.8f

podStyle.identifier shouldBe HasAppleColor.DeviceColor.WHITE.name

model shouldBe PodDevice.Model.AIRPODS_PRO2_USBC
}
}
}
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/21102000.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support for AirPods Pro 2 with USB-C

0 comments on commit 6b0a1fc

Please sign in to comment.