#!/usr/bin/env python
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from mock_file_system import MockFileSystem
from test_file_system import TestFileSystem
from third_party.json_schema_compiler.memoize import memoize

class FakeHostFileSystemProvider(object):

  def __init__(self, file_system_data):
    self._file_system_data = file_system_data

  def GetTrunk(self):
    return self.GetBranch('trunk')

  @memoize
  def GetBranch(self, branch):
    return MockFileSystem(TestFileSystem(self._file_system_data[str(branch)]))
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from mock_file_system import MockFileSystem
from test_file_system import TestFileSystem
from third_party.json_schema_compiler.memoize import memoize

class FakeHostFileSystemProvider(object):

  def __init__(self, file_system_data):
    self._file_system_data = file_system_data

  def GetTrunk(self):
    return self.GetBranch('trunk')

  @memoize
  def GetBranch(self, branch):
    return MockFileSystem(TestFileSystem(self._file_system_data[str(branch)]))

Remove shebang line from non-executable .py file.
Remove shebang line from non-executable .py file.

Fixes checkperms failure on the main waterfall:

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Full/builds/30316/steps/check_perms/logs/stdio
/b/build/slave/Linux_ChromiumOS/build/src/chrome/common/extensions/docs/server2/fake_host_file_system_provider.py: Has shebang but not executable bit

BUG=none
TBR=hukun@chromium.org,kalman@chromium.org

Review URL: https://codereview.chromium.org/113123007

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@242351 0039d316-1c4b-4281-b951-d872f2087c98
