| OLD | NEW |
| 1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import re | 6 import re |
| 7 import sys | 7 import sys |
| 8 import unittest | 8 import unittest |
| 9 import PRESUBMIT | 9 import PRESUBMIT |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 mock_input_api.files = [ | 130 mock_input_api.files = [ |
| 131 MockFile(os.path.abspath('./protocol/sync.proto'), | 131 MockFile(os.path.abspath('./protocol/sync.proto'), |
| 132 MOCK_PROTOFILE_CONTENTS), | 132 MOCK_PROTOFILE_CONTENTS), |
| 133 MockFile(os.path.abspath('./syncable/model_type.cc'), | 133 MockFile(os.path.abspath('./syncable/model_type.cc'), |
| 134 MOCK_MODELTYPE_CONTENTS % (modeltype_literal)) | 134 MOCK_MODELTYPE_CONTENTS % (modeltype_literal)) |
| 135 ] | 135 ] |
| 136 | 136 |
| 137 return PRESUBMIT.CheckChangeOnCommit(mock_input_api, MockOutputApi()) | 137 return PRESUBMIT.CheckChangeOnCommit(mock_input_api, MockOutputApi()) |
| 138 if __name__ == '__main__': | 138 if __name__ == '__main__': |
| 139 unittest.main() | 139 unittest.main() |
| OLD | NEW |