chromium/services/device/battery/battery_monitor_impl_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/device/battery/battery_monitor_impl.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/device/battery/battery_status_manager.h"
#include "services/device/battery/battery_status_service.h"
#include "services/device/device_service_test_base.h"
#include "services/device/public/mojom/battery_monitor.mojom.h"

// These tests run against the implementation of the BatteryMonitor interface
// inside Device Service, with a dummy BatteryManager set as a source of the
// battery information. They can be run only on platforms that use the default
// battery service implementation, ie. on the platforms where
// BatteryStatusService is used.

namespace device {

namespace {

void ExpectBatteryStatus(bool* out_called,
                         const mojom::BatteryStatus& expected,
                         base::OnceClosure quit_closure,
                         mojom::BatteryStatusPtr status) {}

class FakeBatteryStatusManager : public BatteryStatusManager {};

class BatteryMonitorImplTest : public DeviceServiceTestBase {};

TEST_F(BatteryMonitorImplTest, BatteryManagerDefaultValues) {}

TEST_F(BatteryMonitorImplTest, BatteryManagerPredefinedValues) {}

TEST_F(BatteryMonitorImplTest, BatteryManagerInvokeUpdate) {}

}  // namespace

}  // namespace device