blob: 26836124114fc386fba0a96a3b9c97da0eefe2ce [file] [log] [blame]
// Copyright 2019 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/ec_helper_stub.h"
namespace power_manager {
namespace system {
EcHelperStub::EcHelperStub() : wakeup_as_tablet_allowed_(false) {}
EcHelperStub::~EcHelperStub() {}
bool EcHelperStub::IsWakeAngleSupported() {
return true;
}
bool EcHelperStub::AllowWakeupAsTablet(bool enabled) {
wakeup_as_tablet_allowed_ = enabled;
return true;
}
bool EcHelperStub::IsWakeupAsTabletAllowed() {
return wakeup_as_tablet_allowed_;
}
} // namespace system
} // namespace power_manager