| Index: third_party/WebKit/Source/modules/battery/testing/InternalsBattery.cpp
|
| diff --git a/third_party/WebKit/Source/modules/battery/testing/InternalsBattery.cpp b/third_party/WebKit/Source/modules/battery/testing/InternalsBattery.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..13ad6ceae00b001fee89ede0928d7a5d8c56434d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/battery/testing/InternalsBattery.cpp
|
| @@ -0,0 +1,17 @@
|
| +// Copyright 2016 The Chromium 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 "modules/battery/testing/InternalsBattery.h"
|
| +
|
| +#include "modules/battery/BatteryDispatcher.h"
|
| +
|
| +namespace blink {
|
| +
|
| +void InternalsBattery::updateBatteryStatus(Internals&, bool charging, double chargingTime, double dischargingTime, double level)
|
| +{
|
| + BatteryDispatcher::instance().OnUpdateBatteryStatus(
|
| + BatteryStatus(charging, chargingTime, dischargingTime, level));
|
| +}
|
| +
|
| +} // namespace blink
|
|
|