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

Side by Side Diff: tools/telemetry/telemetry/test/system_stub.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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 """Provides stubs for os, sys and subprocess for testing 4 """Provides stubs for os, sys and subprocess for testing
5 5
6 This test allows one to test code that itself uses os, sys, and subprocess. 6 This test allows one to test code that itself uses os, sys, and subprocess.
7 """ 7 """
8 8
9 import os 9 import os
10 import re 10 import re
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 def __init__(self): 148 def __init__(self):
149 self.Popen = SubprocessModuleStub.PopenStub() 149 self.Popen = SubprocessModuleStub.PopenStub()
150 self.PIPE = None 150 self.PIPE = None
151 151
152 def call(self, *args, **kwargs): 152 def call(self, *args, **kwargs):
153 raise NotImplementedError() 153 raise NotImplementedError()
154 154
155 class SysModuleStub(object): 155 class SysModuleStub(object):
156 def __init__(self): 156 def __init__(self):
157 self.platform = '' 157 self.platform = ''
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/test/simple_mock_unittest.py ('k') | tools/telemetry/telemetry/test/tab_test_case.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698