OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Fake (similar in memory implementation) version of GSDStorage.""" | 6 """Fake (similar in memory implementation) version of GSDStorage.""" |
7 | 7 |
8 | 8 |
9 import file_tools | 9 import file_tools |
10 | 10 |
11 | 11 |
(...skipping 25 matching lines...) Expand all Loading... |
37 else: | 37 else: |
38 return None | 38 return None |
39 | 39 |
40 def ItemCount(self): | 40 def ItemCount(self): |
41 """Return a count of how many total unique keys have been written.""" | 41 """Return a count of how many total unique keys have been written.""" |
42 return len(self._store) | 42 return len(self._store) |
43 | 43 |
44 def WriteCount(self): | 44 def WriteCount(self): |
45 """Return a count of how many total writes have been done.""" | 45 """Return a count of how many total writes have been done.""" |
46 return self._write_count | 46 return self._write_count |
OLD | NEW |