Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/PriorityQueue.cpp (221665 => 221666)
--- trunk/Tools/TestWebKitAPI/Tests/WTF/PriorityQueue.cpp 2017-09-06 06:48:49 UTC (rev 221665)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/PriorityQueue.cpp 2017-09-06 07:23:38 UTC (rev 221666)
@@ -56,7 +56,11 @@
TEST(WTF_PriorityQueue, Basic)
{
const unsigned numElements = 10;
+#if defined(_MSC_VER) && _MSC_VER < 1910 // FIXME: Remove this workaround after we drop MSVC 2015 support (https://bugs.webkit.org/show_bug.cgi?id=176443).
+ PriorityQueue<unsigned, isLessThan<unsigned>> queue;
+#else
PriorityQueue<unsigned> queue;
+#endif
EXPECT_EQ(0_z, queue.size());
EXPECT_TRUE(queue.isEmpty());
@@ -76,7 +80,11 @@
TEST(WTF_PriorityQueue, CustomPriorityFunction)
{
const unsigned numElements = 10;
+#if defined(_MSC_VER) && _MSC_VER < 1910 // FIXME: Remove this workaround after we drop MSVC 2015 support (https://bugs.webkit.org/show_bug.cgi?id=176443).
+ PriorityQueue<unsigned, isGreaterThan<unsigned>> queue;
+#else
PriorityQueue<unsigned, &isGreaterThan<unsigned>> queue;
+#endif
EXPECT_EQ(0_z, queue.size());
EXPECT_TRUE(queue.isEmpty());
@@ -106,7 +114,11 @@
TEST(WTF_PriorityQueue, MoveOnly)
{
+#if defined(_MSC_VER) && _MSC_VER < 1910 // FIXME: Remove this workaround after we drop MSVC 2015 support (https://bugs.webkit.org/show_bug.cgi?id=176443).
+ PriorityQueue<MoveOnly, &CompareMove<isLessThan<unsigned>>::compare> queue;
+#else
PriorityQueue<MoveOnly, &CompareMove<&isLessThan<unsigned>>::compare> queue;
+#endif
Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
Vector<unsigned> sorted = values;
@@ -123,7 +135,11 @@
TEST(WTF_PriorityQueue, DecreaseKey)
{
+#if defined(_MSC_VER) && _MSC_VER < 1910 // FIXME: Remove this workaround after we drop MSVC 2015 support (https://bugs.webkit.org/show_bug.cgi?id=176443).
+ PriorityQueue<MoveOnly, &CompareMove<isLessThan<unsigned>>::compare> queue;
+#else
PriorityQueue<MoveOnly, &CompareMove<&isLessThan<unsigned>>::compare> queue;
+#endif
Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
Vector<unsigned> sorted = values;
@@ -149,7 +165,11 @@
TEST(WTF_PriorityQueue, IncreaseKey)
{
+#if defined(_MSC_VER) && _MSC_VER < 1910 // FIXME: Remove this workaround after we drop MSVC 2015 support (https://bugs.webkit.org/show_bug.cgi?id=176443).
+ PriorityQueue<MoveOnly, &CompareMove<isGreaterThan<unsigned>>::compare> queue;
+#else
PriorityQueue<MoveOnly, &CompareMove<&isGreaterThan<unsigned>>::compare> queue;
+#endif
Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
Vector<unsigned> sorted = values;
@@ -175,7 +195,11 @@
TEST(WTF_PriorityQueue, Iteration)
{
+#if defined(_MSC_VER) && _MSC_VER < 1910 // FIXME: Remove this workaround after we drop MSVC 2015 support (https://bugs.webkit.org/show_bug.cgi?id=176443).
+ PriorityQueue<MoveOnly, CompareMove<isGreaterThan<unsigned>>::compare> queue;
+#else
PriorityQueue<MoveOnly, &CompareMove<&isGreaterThan<unsigned>>::compare> queue;
+#endif
Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
Vector<unsigned> sorted = values;
@@ -207,7 +231,11 @@
return randomNumber;
};
+#if defined(_MSC_VER) && _MSC_VER < 1910 // FIXME: Remove this workaround after we drop MSVC 2015 support (https://bugs.webkit.org/show_bug.cgi?id=176443).
+ PriorityQueue<uint64_t, isLessThan<uint64_t>> queue;
+#else
PriorityQueue<uint64_t> queue;
+#endif
Vector<uint64_t> values;
enum Cases {