Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: content/public/test/layouttest_support.h

Issue 298263002: Battery Status API: add testing support for LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/battery_status/fake_battery_status_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index cf4e695cb1cae695516071ef4c3ce6c5cf153aa5..76a4deec13747a4d7e2f26d475da8b10b4bfc146 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -12,6 +12,7 @@
#include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
namespace blink {
+class WebBatteryStatus;
class WebDeviceMotionData;
class WebDeviceOrientationData;
class WebGamepad;
@@ -67,6 +68,9 @@ void SetMockScreenOrientation(
// Resets the mock screen orientation data.
void ResetMockScreenOrientation();
+// Notifies blink that battery status has changed.
+void MockBatteryStatusChanged(const blink::WebBatteryStatus& status);
+
// Returns the length of the local session history of a render view.
int GetLocalSessionHistoryLength(RenderView* render_view);
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/battery_status/fake_battery_status_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698