cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / common / extensions / docs / server2 / fake_host_file_system_provider.py
blobc8691c10cec63744094bc5234f7f2f23dc9e5bb5
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
3 # found in the LICENSE file.
5 from mock_file_system import MockFileSystem
6 from test_file_system import TestFileSystem
7 from third_party.json_schema_compiler.memoize import memoize
9 class FakeHostFileSystemProvider(object):
11 def __init__(self, file_system_data):
12 self._file_system_data = file_system_data
14 def GetMaster(self):
15 return self.GetBranch('master')
17 @memoize
18 def GetBranch(self, branch):
19 return MockFileSystem(TestFileSystem(self._file_system_data[str(branch)]))