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

Unified Diff: content/shell/common/power_monitor_test.mojom

Issue 2870373002: [DeviceService] Add end-to-end browsertest for PowerMonitor (Closed)
Patch Set: Address comments from jam@ and blundell@ Created 3 years, 6 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
Index: content/shell/common/power_monitor_test.mojom
diff --git a/content/shell/common/power_monitor_test.mojom b/content/shell/common/power_monitor_test.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..b5a62b8c6defa8281e0d331453f2cdaa6ddf82bc
--- /dev/null
+++ b/content/shell/common/power_monitor_test.mojom
@@ -0,0 +1,14 @@
+// Copyright 2017 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.
+
+module content.mojom;
+
+// This interface is only for the sake of browser test to query current power
+// state observed in remote child processes.
+interface PowerMonitorTest {
+ // The power state is reported immediatelly if there is already a change
+ // available to notify, otherwise wait until a change happen. Overlapping
+ // calls to QueryNextState are prohibited.
+ QueryNextState() => (bool on_battery_power);
+};

Powered by Google App Engine
This is Rietveld 408576698