blob: 7e2efad7fc865f216c1f947d6680324a2e86d55d [file] [log] [blame]
// Copyright 2016 The Chromium OS 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 "power_manager/powerd/system/audio_client_stub.h"
namespace power_manager {
namespace system {
AudioClientStub::AudioClientStub() = default;
AudioClientStub::~AudioClientStub() = default;
bool AudioClientStub::GetHeadphoneJackPlugged() const {
return headphone_jack_plugged_;
}
bool AudioClientStub::GetHdmiActive() const {
return hdmi_active_;
}
void AudioClientStub::AddObserver(AudioObserver* observer) {
CHECK(observer);
observers_.AddObserver(observer);
}
void AudioClientStub::RemoveObserver(AudioObserver* observer) {
CHECK(observer);
observers_.RemoveObserver(observer);
}
void AudioClientStub::SetSuspended(bool suspended) {
suspended_ = suspended;
}
} // namespace system
} // namespace power_manager