gfe-relnote: n/a(test only code) switch from unordered_set to multimap.
The order of elements in std::unordered_set is not consistent in different
platforms. However, the existing test requires the order of the elements to be
sorted according to key.
PiperOrigin-RevId: 244264305
Change-Id: I9f45e5b95d3ec17d68ff9bb95f1a34e4b398b900
diff --git a/epoll_server/fake_simple_epoll_server.h b/epoll_server/fake_simple_epoll_server.h
index 470311a..cd5bd3a 100644
--- a/epoll_server/fake_simple_epoll_server.h
+++ b/epoll_server/fake_simple_epoll_server.h
@@ -8,8 +8,7 @@
#include <stddef.h>
#include <stdint.h>
-#include <unordered_map>
-#include <unordered_set>
+#include <map>
#include "net/third_party/quiche/src/epoll_server/platform/api/epoll_export.h"
#include "net/third_party/quiche/src/epoll_server/simple_epoll_server.h"
@@ -57,7 +56,7 @@
class EPOLL_EXPORT_PRIVATE FakeSimpleEpollServer
: public FakeTimeSimpleEpollServer {
public: // type definitions
- using EventQueue = std::unordered_multimap<int64_t, struct epoll_event>;
+ using EventQueue = std::multimap<int64_t, struct epoll_event>;
FakeSimpleEpollServer();
FakeSimpleEpollServer(const FakeSimpleEpollServer&) = delete;