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

Side by Side Diff: chrome/common/extensions/docs/server2/fake_host_file_system_provider.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 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 mock_file_system import MockFileSystem 5 from mock_file_system import MockFileSystem
6 from test_file_system import TestFileSystem 6 from test_file_system import TestFileSystem
7 from third_party.json_schema_compiler.memoize import memoize 7 from third_party.json_schema_compiler.memoize import memoize
8 8
9 class FakeHostFileSystemProvider(object): 9 class FakeHostFileSystemProvider(object):
10 10
11 def __init__(self, file_system_data): 11 def __init__(self, file_system_data):
12 self._file_system_data = file_system_data 12 self._file_system_data = file_system_data
13 13
14 def GetTrunk(self): 14 def GetMaster(self):
15 return self.GetBranch('trunk') 15 return self.GetBranch('master')
16 16
17 @memoize 17 @memoize
18 def GetBranch(self, branch): 18 def GetBranch(self, branch):
19 return MockFileSystem(TestFileSystem(self._file_system_data[str(branch)])) 19 return MockFileSystem(TestFileSystem(self._file_system_data[str(branch)]))
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/fake_fetchers.py ('k') | chrome/common/extensions/docs/server2/file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698