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

Side by Side Diff: tools/telemetry/telemetry/util_unittest.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « tools/telemetry/telemetry/util.py ('k') | tools/telemetry/telemetry/wait_action.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 import unittest
5
6 from telemetry import util
7
8 class TestWait(unittest.TestCase):
9 @staticmethod
10 def testNonTimeout():
11 def test():
12 return True
13 util.WaitFor(test, 0.1)
14
15 def testTimeout(self):
16 def test():
17 return False
18 self.assertRaises(util.TimeoutException, lambda: util.WaitFor(test, 0.1))
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/util.py ('k') | tools/telemetry/telemetry/wait_action.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698