Index: grit/format/policy_templates/writers/mock_writer.py |
=================================================================== |
--- grit/format/policy_templates/writers/mock_writer.py (revision 0) |
+++ grit/format/policy_templates/writers/mock_writer.py (revision 0) |
@@ -0,0 +1,29 @@ |
+# Copyright (c) 2010 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 template_writer import TemplateWriter |
+ |
+ |
+class MockWriter(TemplateWriter): |
+ '''Helper class for unit tests in policy_template_generator_unittest.py |
+ ''' |
+ |
+ def __init__(self): |
+ pass |
+ |
+ def WritePolicy(self, policy): |
+ pass |
+ |
+ def BeginTemplate(self): |
+ pass |
+ |
+ def GetTemplateText(self): |
+ pass |
+ |
+ def IsPolicySupported(self, policy): |
+ return True |
+ |
+ def Test(self): |
+ pass |
Property changes on: grit/format/policy_templates/writers/mock_writer.py |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |