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

Side by Side Diff: tools/checkdeps/checkdeps_manualtest.py

Issue 10805042: Implement ability to specify temporarily-allowed dependencies in DEPS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Tests for checkdeps that require manual evaluation.
7 """
8
9 import checkdeps
10
11
12 def TestCheckAddedIncludes():
13 # Note that these tests depend on the rules currently in DEPS files
14 # checked into the tree, which may change. Therefore the test is
15 # only run manually and may need to be updated from time to time.
M-A Ruel 2012/07/26 13:50:51 Optional: I think a data subdirectory should be cr
Jói 2012/07/26 17:05:52 Done, I was thinking about this and should have do
16 problems = checkdeps.CheckAddedIncludes(
17 # The first of these should fail as a DISALLOW, the second should
18 # fail as a TEMP_ALLOW, because of rules in chrome/browser/DEPS.
19 [['chrome/browser/bingo.cc',
20 ['#include "chrome/browser/ui/views/boondog.h"',
21 '#include "chrome/browser/ui/views/ash/panel_view_aura.h"']],
22 # This should fail because of no rule applying.
23 ['chrome/browser/lifetime/bongo.cc', ['#include "fantastic/food.h"']],
24 # The following two shouldn't fail as they are under a directory
25 # that is skipped for checking, in src/DEPS.
26 ['breakpad/fooblat.cc', ['#include "fantastic/food.h"']],
27 ['breakpad/bingo/bongo/fooblat.cc', ['#include "fantastic/food.h"']],
28 ])
29
30 for problem in problems:
31 print problem[0]
32 print problem[1]
33 print problem[2]
34 print
35 print
36
37
38 if __name__ == '__main__':
39 TestCheckAddedIncludes()
40
M-A Ruel 2012/07/26 13:50:51 remo
Jói 2012/07/26 17:05:52 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698