blob: a9accad72a8cd715d89e7f86563f9b94e2ef111b [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuchsia/media/cpp/fidl.h>
#include "src/media/audio/audio_core/testing/integration/hermetic_audio_test.h"
namespace media::audio::test {
class AudioTest : public HermeticAudioTest {
protected:
fuchsia::media::AudioRendererPtr audio_renderer_;
};
// Test that the user is connected to the Audio FIDL service.
TEST_F(AudioTest, ConnectToAudioService) {
fuchsia::media::AudioPtr audio_client;
realm().Connect(audio_client.NewRequest());
AddErrorHandler(audio_client, "AudioClient");
audio_client->CreateAudioRenderer(audio_renderer_.NewRequest());
audio_renderer_->GetMinLeadTime(AddCallback("GetMinLeadTime"));
ExpectCallbacks();
}
} // namespace media::audio::test