Index: PRESUBMIT_test.py |
diff --git a/PRESUBMIT_test.py b/PRESUBMIT_test.py |
index 6b83350e73c74954ccb6e2e5900cbbafd9cc92d8..90a8dafd07a3fe026d7a951b80772cc0f53626ef 100755 |
--- a/PRESUBMIT_test.py |
+++ b/PRESUBMIT_test.py |
@@ -416,6 +416,20 @@ class CheckSingletonInHeadersTest(unittest.TestCase): |
self.assertEqual(0, len(warnings)) |
+class CheckNoDeprecatedCompiledResourcesGYPTest(unittest.TestCase): |
+ def testNoDeprecatedCompiledResourcsGYP(self): |
+ mock_input_api = MockInputApi() |
+ mock_input_api.files = [MockFile('some/js/compiled_resources.gyp', [])] |
+ errors = PRESUBMIT._CheckNoDeprecatedCompiledResourcesGYP(mock_input_api, |
+ MockOutputApi()) |
+ self.assertEquals(1, len(errors)) |
+ |
+ mock_input_api.files = [MockFile('some/js/compiled_resources2.gyp', [])] |
+ errors = PRESUBMIT._CheckNoDeprecatedCompiledResourcesGYP(mock_input_api, |
+ MockOutputApi()) |
+ self.assertEquals(0, len(errors)) |
+ |
+ |
class InvalidOSMacroNamesTest(unittest.TestCase): |
def testInvalidOSMacroNames(self): |
lines = ['#if defined(OS_WINDOWS)', |