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

Unified Diff: tools-webrtc/testdata/subdir/BUILD.gn

Issue 2629723004: Add presubmit check to prevent package boundary violations. (Closed)
Patch Set: Add tests. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tools-webrtc/testdata/subdir/BUILD.gn
diff --git a/tools-webrtc/testdata/subdir/BUILD.gn b/tools-webrtc/testdata/subdir/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c41d53e66711db97d4f550e0fc131c72c33b09f4
--- /dev/null
+++ b/tools-webrtc/testdata/subdir/BUILD.gn
@@ -0,0 +1,40 @@
+# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+static_library("subdir") {
+ sources = [
+ "dummy2.cc",
+ ]
+ deps = [
+ ":package_boundary_violation",
+ "subdir2",
+ ]
+}
+
+static_library("package_boundary_violation") {
+ sources = [
+ "subdir2/dummy4.cc",
+ "subdir2/dummy4.h",
+ ]
+ deps = [
+ "subdir2",
+ ]
+}
+
+# Testing that this work with indentation.
+if (is_win) {
+ source_set("package_boundary_violation_unittests") {
+ testonly = true
+ sources = [
+ "subdir2/dummy3_unittest.cc",
+ ]
+ deps = [
+ "subdir2:dummy_test_support",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698