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

Unified Diff: tools/grit/grit/format/policy_templates/writers/mock_writer.py

Issue 1410853008: Move grit from DEPS into src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: webview licenses Created 5 years, 1 month 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
Index: tools/grit/grit/format/policy_templates/writers/mock_writer.py
diff --git a/tools/grit/grit/format/policy_templates/writers/mock_writer.py b/tools/grit/grit/format/policy_templates/writers/mock_writer.py
new file mode 100755
index 0000000000000000000000000000000000000000..3db3a5432b9d4344bf213e947b03acf23136aecd
--- /dev/null
+++ b/tools/grit/grit/format/policy_templates/writers/mock_writer.py
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+# Copyright (c) 2012 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

Powered by Google App Engine
This is Rietveld 408576698