Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7110f0bc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "leaudio: Fix unit test" into tm-qpr-dev

parents ed61e9b1 182428d0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -108,6 +108,7 @@
                "VND_SingleDev_TwoChanStereoSnk_TwoChanStereoSrc_32khz_60oct_R3_L22_1",
                "DualDev_OneChanMonoSnk_16_2_Server_Preferred",
                "SingleDev_OneChanStereoSnk_16_2_Server_Preferred",
                "SingleDev_TwoChanStereoSnk_16_2_Server_Preferred",
                "SingleDev_OneChanMonoSnk_16_2_Server_Preferred"
            ]
        },
+4 −4
Original line number Diff line number Diff line
@@ -726,10 +726,10 @@ class LeAudioAseConfigurationTest : public Test {
};

TEST_F(LeAudioAseConfigurationTest, test_mono_speaker_ringtone) {
  LeAudioDevice* mono_speaker = AddTestDevice(1, 1);
  LeAudioDevice* mono_speaker = AddTestDevice(1, 0);
  TestGroupAseConfigurationData data(
      {mono_speaker, kLeAudioCodecLC3ChannelCountSingleChannel,
       kLeAudioCodecLC3ChannelCountSingleChannel, 1, 1});
       kLeAudioCodecLC3ChannelCountSingleChannel, 1, 0});

  TestGroupAseConfiguration(LeAudioContextType::RINGTONE, &data, 1);
}
@@ -753,10 +753,10 @@ TEST_F(LeAudioAseConfigurationTest, test_mono_speaker_media) {
}

TEST_F(LeAudioAseConfigurationTest, test_bounded_headphones_ringtone) {
  LeAudioDevice* bounded_headphones = AddTestDevice(2, 1);
  LeAudioDevice* bounded_headphones = AddTestDevice(2, 0);
  TestGroupAseConfigurationData data(
      {bounded_headphones, kLeAudioCodecLC3ChannelCountTwoChannel,
       kLeAudioCodecLC3ChannelCountSingleChannel, 2, 1});
       kLeAudioCodecLC3ChannelCountSingleChannel, 2, 0});

  TestGroupAseConfiguration(LeAudioContextType::RINGTONE, &data, 1);
}