summaryrefslogtreecommitdiffstats
path: root/tools/checkdeps/testdata/disallowed/foo_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/checkdeps/testdata/disallowed/foo_unittest.cc')
-rw-r--r--tools/checkdeps/testdata/disallowed/foo_unittest.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/checkdeps/testdata/disallowed/foo_unittest.cc b/tools/checkdeps/testdata/disallowed/foo_unittest.cc
new file mode 100644
index 0000000..144c05e
--- /dev/null
+++ b/tools/checkdeps/testdata/disallowed/foo_unittest.cc
@@ -0,0 +1,10 @@
+// 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.
+
+// Not allowed for code under disallowed/ but temporarily allowed
+// specifically for test code under allowed/. This regression tests a
+// bug where we were taking shallow copies of rules when generating
+// rules for subdirectories, so all rule objects were getting the same
+// dictionary for specific rules.
+#include "tools/checkdeps/testdata/disallowed/temp_allowed_for_tests.h"