OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 the V8 project authors. All rights reserved. | 2 # Copyright 2013 the V8 project authors. All rights reserved. |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following | 10 # copyright notice, this list of conditions and the following |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
262 | 262 |
263 def Command(self, cmd, args="", prefix="", pipe=True): | 263 def Command(self, cmd, args="", prefix="", pipe=True): |
264 return ScriptTest.MOCKS[cmd](self, cmd, args) | 264 return ScriptTest.MOCKS[cmd](self, cmd, args) |
265 | 265 |
266 def ReadLine(self): | 266 def ReadLine(self): |
267 return self._rl_mock.Call() | 267 return self._rl_mock.Call() |
268 | 268 |
269 def ReadURL(self, url): | 269 def ReadURL(self, url): |
270 return self._url_mock.Call(url) | 270 return self._url_mock.Call(url) |
271 | 271 |
272 def Wait(seconds): | |
Jakob Kummerow
2013/11/28 13:47:27
I think you mean s/Wait/Sleep/.
Michael Achenbach
2013/11/28 14:28:17
Done.
| |
273 pass | |
274 | |
272 def ExpectGit(self, *args): | 275 def ExpectGit(self, *args): |
273 """Convenience wrapper.""" | 276 """Convenience wrapper.""" |
274 self._git_mock.Expect(*args) | 277 self._git_mock.Expect(*args) |
275 | 278 |
276 def ExpectReadline(self, *args): | 279 def ExpectReadline(self, *args): |
277 """Convenience wrapper.""" | 280 """Convenience wrapper.""" |
278 self._rl_mock.Expect(*args) | 281 self._rl_mock.Expect(*args) |
279 | 282 |
280 def ExpectReadURL(self, *args): | 283 def ExpectReadURL(self, *args): |
281 """Convenience wrapper.""" | 284 """Convenience wrapper.""" |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
712 | 715 |
713 Review URL: https://codereview.chromium.org/83173002 | 716 Review URL: https://codereview.chromium.org/83173002 |
714 | 717 |
715 ------------------------------------------------------------------------""") | 718 ------------------------------------------------------------------------""") |
716 self.assertEquals( | 719 self.assertEquals( |
717 """Prepare push to trunk. Now working on version 3.23.11. | 720 """Prepare push to trunk. Now working on version 3.23.11. |
718 | 721 |
719 R=danno@chromium.org | 722 R=danno@chromium.org |
720 | 723 |
721 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 724 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
OLD | NEW |