| OLD | NEW |
| 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 Loading... |
| 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 = '' |
| OLD | NEW |