#include "services/device/public/cpp/test/test_wake_lock_provider.h"
#include <memory>
#include <utility>
#include "base/check_op.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/not_fatal_until.h"
#include "base/notreached.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/remote_set.h"
namespace device {
class TestWakeLockProvider::TestWakeLock : public mojom::WakeLock { … };
struct TestWakeLockProvider::WakeLockDataPerType { … };
TestWakeLockProvider::TestWakeLockProvider() { … }
TestWakeLockProvider::~TestWakeLockProvider() = default;
void TestWakeLockProvider::BindReceiver(
mojo::PendingReceiver<mojom::WakeLockProvider> receiver) { … }
void TestWakeLockProvider::GetWakeLockContextForID(
int context_id,
mojo::PendingReceiver<mojom::WakeLockContext> receiver) { … }
void TestWakeLockProvider::GetWakeLockWithoutContext(
mojom::WakeLockType type,
mojom::WakeLockReason reason,
const std::string& description,
mojo::PendingReceiver<mojom::WakeLock> receiver) { … }
void TestWakeLockProvider::OnConnectionError(mojom::WakeLockType type,
TestWakeLock* wake_lock) { … }
TestWakeLockProvider::WakeLockDataPerType&
TestWakeLockProvider::GetWakeLockDataPerType(mojom::WakeLockType type) const { … }
void TestWakeLockProvider::OnWakeLockActivated(mojom::WakeLockType type) { … }
void TestWakeLockProvider::OnWakeLockDeactivated(mojom::WakeLockType type) { … }
void TestWakeLockProvider::NotifyOnWakeLockDeactivation(
mojom::WakeLockType type,
mojo::PendingRemote<mojom::WakeLockObserver> pending_observer) { … }
void TestWakeLockProvider::GetActiveWakeLocksForTests(
mojom::WakeLockType type,
GetActiveWakeLocksForTestsCallback callback) { … }
}