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

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

Issue 26538009: Docserver: make file_system a property of Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: niggles Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/server2/template_data_source_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/test_file_system.py
diff --git a/chrome/common/extensions/docs/server2/test_file_system.py b/chrome/common/extensions/docs/server2/test_file_system.py
index 35ae153eb0d749a731336762927c67ea91eeb0d7..2a8d06d8867a02fc5260c167354bfb9ebdb7c03d 100644
--- a/chrome/common/extensions/docs/server2/test_file_system.py
+++ b/chrome/common/extensions/docs/server2/test_file_system.py
@@ -26,9 +26,10 @@ class TestFileSystem(FileSystem):
IncrementStat.
'''
- def __init__(self, obj, relative_to=None):
+ def __init__(self, obj, relative_to=None, identity=None):
assert obj is not None
self._obj = obj if relative_to is None else _MoveTo(relative_to, obj)
+ self._identity = identity or type(self).__name__
self._path_stats = {}
self._global_stat = 0
@@ -113,4 +114,4 @@ class TestFileSystem(FileSystem):
self._global_stat += 1
def GetIdentity(self):
- return self.__class__.__name__
+ return self._identity
« no previous file with comments | « chrome/common/extensions/docs/server2/template_data_source_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698