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

Side by Side Diff: build/android/devil/utils/watchdog_timer.py

Issue 1314913009: [Android] Move some pylib modules into devil/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « build/android/devil/utils/timeout_retry.py ('k') | build/android/devil/utils/zip_utils.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """WatchdogTimer timeout objects.""" 5 """WatchdogTimer timeout objects."""
6 6
7 import time 7 import time
8 8
9 9
10 class WatchdogTimer(object): 10 class WatchdogTimer(object):
(...skipping 27 matching lines...) Expand all
38 return None 38 return None
39 39
40 def IsTimedOut(self): 40 def IsTimedOut(self):
41 """Whether the watchdog has timed out. 41 """Whether the watchdog has timed out.
42 42
43 Returns: 43 Returns:
44 True if the watchdog has timed out, False otherwise. 44 True if the watchdog has timed out, False otherwise.
45 """ 45 """
46 remaining = self.GetRemaining() 46 remaining = self.GetRemaining()
47 return remaining is not None and remaining < 0 47 return remaining is not None and remaining < 0
OLDNEW
« no previous file with comments | « build/android/devil/utils/timeout_retry.py ('k') | build/android/devil/utils/zip_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698