forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfake_floss_battery_manager_client.cc
30 lines (23 loc) · 1.11 KB
/
fake_floss_battery_manager_client.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/bluetooth/floss/fake_floss_battery_manager_client.h"
#include "base/task/single_thread_task_runner.h"
#include "device/bluetooth/floss/floss_dbus_client.h"
namespace floss {
FakeFlossBatteryManagerClient::FakeFlossBatteryManagerClient() = default;
FakeFlossBatteryManagerClient::~FakeFlossBatteryManagerClient() = default;
void FakeFlossBatteryManagerClient::Init(dbus::Bus* bus,
const std::string& service_name,
const int adapter_index,
base::OnceClosure on_ready) {
std::move(on_ready).Run();
}
void FakeFlossBatteryManagerClient::GetBatteryInformation(
ResponseCallback<absl::optional<BatterySet>> callback,
const FlossDeviceId& device) {
std::move(callback).Run(DBusResult<absl::optional<BatterySet>>({}));
}
void FakeFlossBatteryManagerClient::AddObserver(
FlossBatteryManagerClientObserver* observer) {}
} // namespace floss