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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 21015010: Remove all traces of deprecated Get/SetReleaseTrack calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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/chromeos_update.py ('k') | chromeos/dbus/fake_update_engine_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 4084f3677bb82ea4f3c3f1121f2f5eb4ffd035b8..7d81e0a5505eb541b3be13288254f700d898a2ec 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -5086,27 +5086,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
}
self._GetResultFromJSONRequest(cmd_dict, windex=None)
- def GetUpdateInfo(self):
- """Gets the status of the ChromeOS updater.
-
- Returns:
- a dictionary.
- Samples:
- { u'status': u'idle',
- u'release_track': u'beta-channel'}
-
- { u'status': u'downloading',
- u'release_track': u'beta-channel',
- u'download_progress': 0.1203236708350371, # 0.0 ~ 1.0
- u'new_size': 152033593, # size of payload, in bytes
- u'last_checked_time': 1302055709} # seconds since UNIX epoch
-
- Raises:
- pyauto_errors.JSONInterfaceError if the automation call returns an error.
- """
- cmd_dict = { 'command': 'GetUpdateInfo' }
- return self._GetResultFromJSONRequest(cmd_dict, windex=None)
-
def UpdateCheck(self):
"""Checks for a ChromeOS update. Blocks until finished updating.
@@ -5116,23 +5095,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
cmd_dict = { 'command': 'UpdateCheck' }
self._GetResultFromJSONRequest(cmd_dict, windex=None)
- def SetReleaseTrack(self, track):
- """Sets the release track (channel) of the ChromeOS updater.
-
- Valid values for the track parameter are:
- 'stable-channel', 'beta-channel', 'dev-channel'
-
- Raises:
- pyauto_errors.JSONInterfaceError if the automation call returns an error.
- """
- assert track in ('stable-channel', 'beta-channel', 'dev-channel'), \
- 'Attempt to set release track to unknown release track "%s".' % track
- cmd_dict = {
- 'command': 'SetReleaseTrack',
- 'track': track,
- }
- self._GetResultFromJSONRequest(cmd_dict, windex=None)
-
def GetVolumeInfo(self):
"""Gets the volume and whether the device is muted.
« no previous file with comments | « chrome/test/functional/chromeos_update.py ('k') | chromeos/dbus/fake_update_engine_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698