Skip to content

Commit b8d37a0

Browse files
committed
Change superclass of ModSecurityTest to map for consistent order of output
1 parent f72106d commit b8d37a0

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

test/common/modsecurity_test.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <utility>
1818
#include <string>
1919
#include <vector>
20-
#include <unordered_map>
20+
#include <map>
2121

2222
#ifndef TEST_COMMON_MODSECURITY_TEST_H_
2323
#define TEST_COMMON_MODSECURITY_TEST_H_
@@ -29,7 +29,7 @@ extern std::string default_test_path;
2929
namespace modsecurity_test {
3030

3131
template <class T> class ModSecurityTest :
32-
public std::unordered_map<std::string, std::vector<std::unique_ptr<T>>> {
32+
public std::map<std::string, std::vector<std::unique_ptr<T>>> {
3333
public:
3434
ModSecurityTest() = default;
3535

test/common/modsecurity_test_results.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515

1616
#include <iostream>
17-
#include <unordered_map>
1817
#include <vector>
1918
#include <string>
2019

test/regression/regression_test.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include <iostream>
1919
#include <sstream>
20-
#include <unordered_map>
2120
#include <map>
2221
#include <vector>
2322
#include <string>

test/unit/unit_test.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <yajl/yajl_tree.h>
1717

1818
#include <iostream>
19-
#include <unordered_map>
2019
#include <vector>
2120
#include <string>
2221
#include <memory>

0 commit comments

Comments
 (0)