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

Side by Side Diff: build/android/pylib/utils/mock_calls.py

Issue 738413002: [Android] Extract MD5sum logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/pylib/utils/md5sum_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # 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
4 # found in the LICENSE file. 3 # found in the LICENSE file.
5 4
6 """ 5 """
7 A test facility to assert call sequences while mocking their behavior. 6 A test facility to assert call sequences while mocking their behavior.
8 """ 7 """
9 8
10 import os 9 import os
11 import sys 10 import sys
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 Raises: 165 Raises:
167 AssertionError if the watched targets do not receive the exact sequence 166 AssertionError if the watched targets do not receive the exact sequence
168 of calls specified. Missing calls, extra calls, and calls with 167 of calls specified. Missing calls, extra calls, and calls with
169 mismatching arguments, all cause the assertion to fail. 168 mismatching arguments, all cause the assertion to fail.
170 """ 169 """
171 return self._AssertCalls(self, calls, self._watched) 170 return self._AssertCalls(self, calls, self._watched)
172 171
173 def assertCall(self, call, action=None): 172 def assertCall(self, call, action=None):
174 return self.assertCalls((call, action)) 173 return self.assertCalls((call, action))
175 174
OLDNEW
« no previous file with comments | « build/android/pylib/utils/md5sum_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698