Chromium Code Reviews| Index: PRESUBMIT_test.py |
| diff --git a/PRESUBMIT_test.py b/PRESUBMIT_test.py |
| index e0de9674d3372498ad8ea94828154e46135dd9be..908675347d55fc740de94740b87efc5f36057a41 100755 |
| --- a/PRESUBMIT_test.py |
| +++ b/PRESUBMIT_test.py |
| @@ -134,6 +134,18 @@ class IncludeOrderTest(unittest.TestCase): |
| mock_input_api, mock_file, range(1, len(contents) + 1)) |
| self.assertEqual(0, len(warnings)) |
| + def testSpecialFirstInclude7(self): |
| + mock_input_api = MockInputApi() |
| + contents = ['#include "ipc/some_macros.h"', |
|
Paweł Hajdan Jr.
2015/09/03 13:23:52
This doesn't look like a realistic scenario we'd l
David Yen
2015/09/03 16:39:27
Done. Changed the example to windows.h to be more
|
| + '#include "some/other/path/foo.h"', |
| + '#include <set>', |
| + '#include "a/header.h"'] |
| + mock_file = MockFile('some/path/foo.cc', contents) |
| + warnings = PRESUBMIT._CheckIncludeOrderInFile( |
| + mock_input_api, mock_file, range(1, len(contents) + 1)) |
| + print warnings |
| + self.assertEqual(0, len(warnings)) |
| + |
| def testOrderAlreadyWrong(self): |
| scope = [(1, '#include "b.h"'), |
| (2, '#include "a.h"'), |