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

Unified Diff: chrome/common/extensions/docs/server2/mock_file_system.py

Issue 491653002: Docserver: Use GitilesFileSystem instead of SubversionFileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/mock_file_system.py
diff --git a/chrome/common/extensions/docs/server2/mock_file_system.py b/chrome/common/extensions/docs/server2/mock_file_system.py
index 52a84bde7b4b54e6c88a03c39d0593dcd1d4ab56..76942f809da1f83599927a8383dcae6096bc4795 100644
--- a/chrome/common/extensions/docs/server2/mock_file_system.py
+++ b/chrome/common/extensions/docs/server2/mock_file_system.py
@@ -85,6 +85,12 @@ class MockFileSystem(FileSystem):
return stat
+ def GetCommitID(self):
+ return Future(value=self._stat_tracker.GetVersion(''))
+
+ def GetPreviousCommitID(self):
+ return Future(value=self._stat_tracker.GetVersion('') - 1)
+
def GetIdentity(self):
return self._file_system.GetIdentity()
« no previous file with comments | « chrome/common/extensions/docs/server2/jsc_view_test.py ('k') | chrome/common/extensions/docs/server2/owners_data_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698