Reland "Add check_deps rules in DEPS files."

Relanding https://codereview.webrtc.org/1796413002/
without the change to the openmax_dl include path
(which broke downstream code).

TBR=tommi@webrtc.org
BUG=webrtc:5623
TESTED=Passing runs using:
buildtools/checkdeps/checkdeps.py --root=. talk
buildtools/checkdeps/checkdeps.py --root=. webrtc

Review URL: https://codereview.webrtc.org/1804333002 .

Cr-Commit-Position: refs/heads/master@{#12031}
diff --git a/webrtc/modules/audio_coding/DEPS b/webrtc/modules/audio_coding/DEPS
new file mode 100644
index 0000000..31aa1c2
--- /dev/null
+++ b/webrtc/modules/audio_coding/DEPS
@@ -0,0 +1,7 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/call",
+  "+webrtc/common_audio",
+  "+webrtc/audio_coding/neteq/neteq_unittest.pb.h",  # Different path.
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/audio_conference_mixer/DEPS b/webrtc/modules/audio_conference_mixer/DEPS
new file mode 100644
index 0000000..2805958
--- /dev/null
+++ b/webrtc/modules/audio_conference_mixer/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/audio_device/DEPS b/webrtc/modules/audio_device/DEPS
new file mode 100644
index 0000000..2f4a597
--- /dev/null
+++ b/webrtc/modules/audio_device/DEPS
@@ -0,0 +1,11 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_audio",
+  "+webrtc/system_wrappers",
+]
+
+specific_include_rules = {
+  "ensure_initialized\.cc": [
+    "+base/android",
+  ],
+}
diff --git a/webrtc/modules/audio_processing/DEPS b/webrtc/modules/audio_processing/DEPS
new file mode 100644
index 0000000..e9ac967
--- /dev/null
+++ b/webrtc/modules/audio_processing/DEPS
@@ -0,0 +1,14 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_audio",
+  "+webrtc/system_wrappers",
+]
+
+specific_include_rules = {
+  ".*test\.cc": [
+    "+webrtc/tools",
+    # Android platform build has different paths.
+    "+gtest",
+    "+external/webrtc",
+  ],
+}
diff --git a/webrtc/modules/audio_processing/agc/agc_unittest.cc b/webrtc/modules/audio_processing/agc/agc_unittest.cc
index 25b99d8..8c6278f 100644
--- a/webrtc/modules/audio_processing/agc/agc_unittest.cc
+++ b/webrtc/modules/audio_processing/agc/agc_unittest.cc
@@ -10,8 +10,8 @@
 
 #include "webrtc/modules/audio_processing/agc/agc.h"
 
-#include "gmock/gmock.h"
-#include "gtest/gtest.h"
+#include "testing/gmock/include/gmock/gmock.h"
+#include "testing/gtest/include/gtest/gtest.h"
 
 #include "webrtc/modules/include/module_common_types.h"
 #include "webrtc/test/testsupport/fileutils.h"
diff --git a/webrtc/modules/audio_processing/agc/mock_agc.h b/webrtc/modules/audio_processing/agc/mock_agc.h
index e362200..9e8f64e 100644
--- a/webrtc/modules/audio_processing/agc/mock_agc.h
+++ b/webrtc/modules/audio_processing/agc/mock_agc.h
@@ -13,7 +13,7 @@
 
 #include "webrtc/modules/audio_processing/agc/agc.h"
 
-#include "gmock/gmock.h"
+#include "testing/gmock/include/gmock/gmock.h"
 #include "webrtc/modules/include/module_common_types.h"
 
 namespace webrtc {
diff --git a/webrtc/modules/bitrate_controller/DEPS b/webrtc/modules/bitrate_controller/DEPS
new file mode 100644
index 0000000..9a462b6
--- /dev/null
+++ b/webrtc/modules/bitrate_controller/DEPS
@@ -0,0 +1,5 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/call",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/congestion_controller/DEPS b/webrtc/modules/congestion_controller/DEPS
new file mode 100644
index 0000000..d72e34d
--- /dev/null
+++ b/webrtc/modules/congestion_controller/DEPS
@@ -0,0 +1,5 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/system_wrappers",
+  "+webrtc/video",
+]
diff --git a/webrtc/modules/desktop_capture/DEPS b/webrtc/modules/desktop_capture/DEPS
new file mode 100644
index 0000000..2805958
--- /dev/null
+++ b/webrtc/modules/desktop_capture/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/include/DEPS b/webrtc/modules/include/DEPS
new file mode 100644
index 0000000..aad6d8a
--- /dev/null
+++ b/webrtc/modules/include/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_video",
+]
diff --git a/webrtc/modules/media_file/DEPS b/webrtc/modules/media_file/DEPS
new file mode 100644
index 0000000..5c5452a
--- /dev/null
+++ b/webrtc/modules/media_file/DEPS
@@ -0,0 +1,5 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_audio",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/pacing/DEPS b/webrtc/modules/pacing/DEPS
new file mode 100644
index 0000000..2805958
--- /dev/null
+++ b/webrtc/modules/pacing/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/remote_bitrate_estimator/DEPS b/webrtc/modules/remote_bitrate_estimator/DEPS
new file mode 100644
index 0000000..9a863d9
--- /dev/null
+++ b/webrtc/modules/remote_bitrate_estimator/DEPS
@@ -0,0 +1,10 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/system_wrappers",
+]
+
+specific_include_rules = {
+  "nada\.h": [
+    "+webrtc/voice_engine",
+  ],
+}
diff --git a/webrtc/modules/rtp_rtcp/DEPS b/webrtc/modules/rtp_rtcp/DEPS
new file mode 100644
index 0000000..0720a15
--- /dev/null
+++ b/webrtc/modules/rtp_rtcp/DEPS
@@ -0,0 +1,6 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/call",
+  "+webrtc/common_video",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/utility/DEPS b/webrtc/modules/utility/DEPS
new file mode 100644
index 0000000..1a2885b
--- /dev/null
+++ b/webrtc/modules/utility/DEPS
@@ -0,0 +1,6 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_audio",
+  "+webrtc/common_video",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/video_capture/DEPS b/webrtc/modules/video_capture/DEPS
new file mode 100644
index 0000000..58ae9fe
--- /dev/null
+++ b/webrtc/modules/video_capture/DEPS
@@ -0,0 +1,5 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_video",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/video_coding/DEPS b/webrtc/modules/video_coding/DEPS
new file mode 100644
index 0000000..512a0d8
--- /dev/null
+++ b/webrtc/modules/video_coding/DEPS
@@ -0,0 +1,9 @@
+include_rules = [
+  "+third_party/ffmpeg",
+  "+third_party/openh264",
+  "+vpx",
+  "+webrtc/base",
+  "+webrtc/common_video",
+  "+webrtc/system_wrappers",
+  "+webrtc/tools",
+]
diff --git a/webrtc/modules/video_coding/codecs/vp8/screenshare_layers_unittest.cc b/webrtc/modules/video_coding/codecs/vp8/screenshare_layers_unittest.cc
index 3117e49..7be4eb1 100644
--- a/webrtc/modules/video_coding/codecs/vp8/screenshare_layers_unittest.cc
+++ b/webrtc/modules/video_coding/codecs/vp8/screenshare_layers_unittest.cc
@@ -11,7 +11,7 @@
 #include <memory>
 #include <vector>
 
-#include "gtest/gtest.h"
+#include "testing/gtest/include/gtest/gtest.h"
 #include "vpx/vpx_encoder.h"
 #include "vpx/vp8cx.h"
 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
diff --git a/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h b/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h
index 9f0dc5c..2b2aa5d 100644
--- a/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h
+++ b/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h
@@ -15,6 +15,7 @@
 #include <memory>
 #include <vector>
 
+#include "testing/gtest/include/gtest/gtest.h"
 #include "webrtc/base/checks.h"
 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
 #include "webrtc/modules/video_coding/include/mock/mock_video_codec_interface.h"
@@ -22,8 +23,6 @@
 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h"
 #include "webrtc/video_frame.h"
 
-#include "gtest/gtest.h"
-
 using ::testing::_;
 using ::testing::AllOf;
 using ::testing::Field;
diff --git a/webrtc/modules/video_processing/DEPS b/webrtc/modules/video_processing/DEPS
new file mode 100644
index 0000000..1a2885b
--- /dev/null
+++ b/webrtc/modules/video_processing/DEPS
@@ -0,0 +1,6 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_audio",
+  "+webrtc/common_video",
+  "+webrtc/system_wrappers",
+]
diff --git a/webrtc/modules/video_render/DEPS b/webrtc/modules/video_render/DEPS
new file mode 100644
index 0000000..58ae9fe
--- /dev/null
+++ b/webrtc/modules/video_render/DEPS
@@ -0,0 +1,5 @@
+include_rules = [
+  "+webrtc/base",
+  "+webrtc/common_video",
+  "+webrtc/system_wrappers",
+]