Move quiche_endian.h and quiche_endian_test.cc out of platform.

PiperOrigin-RevId: 337607774
Change-Id: Ib0253a0a80b5b8fe8896e4b38b51d876926c1abf
diff --git a/common/quiche_data_reader.cc b/common/quiche_data_reader.cc
index 9d76e05..395d5c0 100644
--- a/common/quiche_data_reader.cc
+++ b/common/quiche_data_reader.cc
@@ -7,10 +7,10 @@
 #include <cstring>
 
 #include "absl/strings/string_view.h"
-#include "net/third_party/quiche/src/common/platform/api/quiche_endian.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_logging.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_str_cat.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_text_utils.h"
+#include "net/third_party/quiche/src/common/quiche_endian.h"
 
 namespace quiche {
 
diff --git a/common/quiche_data_reader.h b/common/quiche_data_reader.h
index f3911c5..ddd825c 100644
--- a/common/quiche_data_reader.h
+++ b/common/quiche_data_reader.h
@@ -10,9 +10,9 @@
 #include <limits>
 
 #include "absl/strings/string_view.h"
-#include "net/third_party/quiche/src/common/platform/api/quiche_endian.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_export.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_logging.h"
+#include "net/third_party/quiche/src/common/quiche_endian.h"
 
 namespace quiche {
 
diff --git a/common/quiche_data_writer.cc b/common/quiche_data_writer.cc
index d24a594..5d80933 100644
--- a/common/quiche_data_writer.cc
+++ b/common/quiche_data_writer.cc
@@ -8,8 +8,8 @@
 #include <limits>
 
 #include "absl/strings/string_view.h"
-#include "net/third_party/quiche/src/common/platform/api/quiche_endian.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_str_cat.h"
+#include "net/third_party/quiche/src/common/quiche_endian.h"
 
 namespace quiche {
 
diff --git a/common/quiche_data_writer.h b/common/quiche_data_writer.h
index 150657e..ffa1ea6 100644
--- a/common/quiche_data_writer.h
+++ b/common/quiche_data_writer.h
@@ -11,9 +11,9 @@
 #include <limits>
 
 #include "absl/strings/string_view.h"
-#include "net/third_party/quiche/src/common/platform/api/quiche_endian.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_export.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_logging.h"
+#include "net/third_party/quiche/src/common/quiche_endian.h"
 
 namespace quiche {
 
diff --git a/common/quiche_data_writer_test.cc b/common/quiche_data_writer_test.cc
index 72ce2c9..0c62568 100644
--- a/common/quiche_data_writer_test.cc
+++ b/common/quiche_data_writer_test.cc
@@ -9,10 +9,10 @@
 
 #include "absl/strings/string_view.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_arraysize.h"
-#include "net/third_party/quiche/src/common/platform/api/quiche_endian.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_str_cat.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_test.h"
 #include "net/third_party/quiche/src/common/quiche_data_reader.h"
+#include "net/third_party/quiche/src/common/quiche_endian.h"
 #include "net/third_party/quiche/src/common/test_tools/quiche_test_utils.h"
 
 namespace quiche {
diff --git a/common/platform/api/quiche_endian.h b/common/quiche_endian.h
similarity index 92%
rename from common/platform/api/quiche_endian.h
rename to common/quiche_endian.h
index 69bdc5b..9928ff5 100644
--- a/common/platform/api/quiche_endian.h
+++ b/common/quiche_endian.h
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#ifndef QUICHE_COMMON_PLATFORM_API_QUICHE_ENDIAN_H_
-#define QUICHE_COMMON_PLATFORM_API_QUICHE_ENDIAN_H_
+#ifndef QUICHE_COMMON_QUICHE_ENDIAN_H_
+#define QUICHE_COMMON_QUICHE_ENDIAN_H_
 
 #include <algorithm>
 #include <cstdint>
@@ -60,4 +60,4 @@
 
 }  // namespace quiche
 
-#endif  // QUICHE_COMMON_PLATFORM_API_QUICHE_ENDIAN_H_
+#endif  // QUICHE_COMMON_QUICHE_ENDIAN_H_
diff --git a/common/platform/api/quiche_endian_test.cc b/common/quiche_endian_test.cc
similarity index 95%
rename from common/platform/api/quiche_endian_test.cc
rename to common/quiche_endian_test.cc
index 2f21938..81945ff 100644
--- a/common/platform/api/quiche_endian_test.cc
+++ b/common/quiche_endian_test.cc
@@ -2,7 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "net/third_party/quiche/src/common/platform/api/quiche_endian.h"
+#include "net/third_party/quiche/src/common/quiche_endian.h"
+
 #include "net/third_party/quiche/src/common/platform/api/quiche_test.h"
 
 namespace quiche {