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

Unified Diff: chrome/test/functional/chromeos_power.py

Issue 6760013: GetBatteryInfo() battery automation hook. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge. Created 9 years, 9 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 | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/chromeos_power.py
diff --git a/chrome/test/functional/chromeos_power.py b/chrome/test/functional/chromeos_power.py
new file mode 100644
index 0000000000000000000000000000000000000000..b5ab160aa3c568f2f51e15905b8dccd8c1bc9650
--- /dev/null
+++ b/chrome/test/functional/chromeos_power.py
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+# Copyright (c) 2011 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.
+
+import logging
+
+import pyauto_functional
+import pyauto
+
+
+class ChromeosPower(pyauto.PyUITest):
+ """Tests for ChromeOS power library and daemon."""
+
+ def testBatteryInfo(self):
+ """Print some information about the battery."""
+ result = self.GetBatteryInfo()
+ self.assertTrue(result)
+ logging.debug(result)
+
+
+if __name__ == '__main__':
+ pyauto_functional.Main()
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698