Using fully qualified #include paths in g722 code.
WebRTC internal code should always use include paths that start
from the root of the project and that clearly identify the header file.
This allows 'gn check' to actually keep dependencies under control
because 'gn check' cannot enforce anything if the include path
is not fully qualified (starting from the root of the project).
Bug: webrtc:8815
Change-Id: I1fc4cb50d81522a486888a626d4a95df7847d591
Reviewed-on: https://webrtc-review.googlesource.com/46743
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21849}
diff --git a/modules/audio_coding/codecs/g722/g722_decode.c b/modules/audio_coding/codecs/g722/g722_decode.c
index 84af155..06b3485 100644
--- a/modules/audio_coding/codecs/g722/g722_decode.c
+++ b/modules/audio_coding/codecs/g722/g722_decode.c
@@ -34,7 +34,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include "g722_enc_dec.h"
+#include "modules/audio_coding/codecs/g722/g722_enc_dec.h"
#include "typedefs.h" // NOLINT(build/include)
#if !defined(FALSE)
diff --git a/modules/audio_coding/codecs/g722/g722_encode.c b/modules/audio_coding/codecs/g722/g722_encode.c
index ed4b1c8..eeb7649 100644
--- a/modules/audio_coding/codecs/g722/g722_encode.c
+++ b/modules/audio_coding/codecs/g722/g722_encode.c
@@ -34,7 +34,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include "g722_enc_dec.h"
+#include "modules/audio_coding/codecs/g722/g722_enc_dec.h"
#include "typedefs.h" // NOLINT(build/include)
#if !defined(FALSE)
diff --git a/modules/audio_coding/codecs/g722/g722_interface.c b/modules/audio_coding/codecs/g722/g722_interface.c
index b6dccb4..fb25049 100644
--- a/modules/audio_coding/codecs/g722/g722_interface.c
+++ b/modules/audio_coding/codecs/g722/g722_interface.c
@@ -8,12 +8,11 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-
-
#include <stdlib.h>
#include <string.h>
-#include "g722_enc_dec.h"
-#include "g722_interface.h"
+
+#include "modules/audio_coding/codecs/g722/g722_enc_dec.h"
+#include "modules/audio_coding/codecs/g722/g722_interface.h"
#include "typedefs.h" // NOLINT(build/include)
int16_t WebRtcG722_CreateEncoder(G722EncInst **G722enc_inst)
@@ -104,4 +103,3 @@
return -1;
}
}
-