summaryrefslogtreecommitdiff
path: root/utils_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'utils_unittest.cc')
-rw-r--r--utils_unittest.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/utils_unittest.cc b/utils_unittest.cc
index aa1f9196..53e4428a 100644
--- a/utils_unittest.cc
+++ b/utils_unittest.cc
@@ -11,8 +11,8 @@
#include <string>
#include <vector>
-#include <base/files/file_path.h>
#include <base/file_util.h>
+#include <base/files/file_path.h>
#include <base/strings/string_util.h>
#include <base/strings/stringprintf.h>
#include <gtest/gtest.h>
@@ -380,6 +380,14 @@ TEST(UtilsTest, GetFileFormatTest) {
0x02, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00,
0x90, 0x83, 0x04, 0x08, 0x34, 0x00, 0x00, 0x00});
+ // ELF 32-bit LSB executable, MIPS
+ GetFileFormatTester(
+ "ELF 32-bit little-endian mips",
+ vector<uint8_t>{0x7f, 0x45, 0x4c, 0x46, 0x01, 0x01, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x03, 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0xc0, 0x12, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00});
+
// ELF 32-bit LSB executable, ARM
GetFileFormatTester(
"ELF 32-bit little-endian arm",