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

Side by Side Diff: chrome/common/extensions/docs/server2/test_file_system.py

Issue 660383002: Docserver: Persist stat cache for versioned file systems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change caching strategy, better refresh cycle synchronization Created 6 years, 2 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 4
5 from file_system import FileSystem, FileNotFoundError, StatInfo 5 from file_system import FileSystem, FileNotFoundError, StatInfo
6 from future import Future 6 from future import Future
7 from path_util import AssertIsValid, AssertIsDirectory, IsDirectory 7 from path_util import AssertIsValid, AssertIsDirectory, IsDirectory
8 8
9 9
10 def MoveTo(base, obj): 10 def MoveTo(base, obj):
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 for file_result in read_result) 136 for file_result in read_result)
137 return stat_result 137 return stat_result
138 138
139 # 139 #
140 # Testing methods. 140 # Testing methods.
141 # 141 #
142 142
143 def IncrementStat(self, path=None, by=1): 143 def IncrementStat(self, path=None, by=1):
144 self._stat_tracker.Increment(path, by=by) 144 self._stat_tracker.Increment(path, by=by)
145 145
146 def GetIdentity(self): 146 def GetStableIdentity(self):
147 return self._identity 147 return self._identity
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698