Changeset 221666 in webkit


Ignore:
Timestamp:
Sep 6, 2017 12:23:38 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[Win] Tools/TestWebKitAPI/Tests/WTF/PriorityQueue.cpp fails to compile with MSVC 2015
https://bugs.webkit.org/show_bug.cgi?id=176442

Patch by Yoshiaki Jitsukawa <Yoshiaki.Jitsukawa@sony.com> on 2017-09-06
Reviewed by Keith Miller.

  • TestWebKitAPI/Tests/WTF/PriorityQueue.cpp:

(TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r221661 r221666  
     12017-09-06  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
     2
     3        [Win] Tools/TestWebKitAPI/Tests/WTF/PriorityQueue.cpp fails to compile with MSVC 2015
     4        https://bugs.webkit.org/show_bug.cgi?id=176442
     5
     6        Reviewed by Keith Miller.
     7
     8        * TestWebKitAPI/Tests/WTF/PriorityQueue.cpp:
     9        (TEST):
     10
    1112017-09-05  Darin Adler  <darin@apple.com>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WTF/PriorityQueue.cpp

    r220567 r221666  
    5757{
    5858    const unsigned numElements = 10;
     59#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).
     60    PriorityQueue<unsigned, isLessThan<unsigned>> queue;
     61#else
    5962    PriorityQueue<unsigned> queue;
     63#endif
    6064
    6165    EXPECT_EQ(0_z, queue.size());
     
    7781{
    7882    const unsigned numElements = 10;
     83#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).
     84    PriorityQueue<unsigned, isGreaterThan<unsigned>> queue;
     85#else
    7986    PriorityQueue<unsigned, &isGreaterThan<unsigned>> queue;
     87#endif
    8088
    8189    EXPECT_EQ(0_z, queue.size());
     
    107115TEST(WTF_PriorityQueue, MoveOnly)
    108116{
     117#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).
     118    PriorityQueue<MoveOnly, &CompareMove<isLessThan<unsigned>>::compare> queue;
     119#else
    109120    PriorityQueue<MoveOnly, &CompareMove<&isLessThan<unsigned>>::compare> queue;
     121#endif
    110122
    111123    Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
     
    124136TEST(WTF_PriorityQueue, DecreaseKey)
    125137{
     138#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).
     139    PriorityQueue<MoveOnly, &CompareMove<isLessThan<unsigned>>::compare> queue;
     140#else
    126141    PriorityQueue<MoveOnly, &CompareMove<&isLessThan<unsigned>>::compare> queue;
     142#endif
    127143
    128144    Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
     
    150166TEST(WTF_PriorityQueue, IncreaseKey)
    151167{
     168#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).
     169    PriorityQueue<MoveOnly, &CompareMove<isGreaterThan<unsigned>>::compare> queue;
     170#else
    152171    PriorityQueue<MoveOnly, &CompareMove<&isGreaterThan<unsigned>>::compare> queue;
     172#endif
    153173
    154174    Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
     
    176196TEST(WTF_PriorityQueue, Iteration)
    177197{
     198#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).
     199    PriorityQueue<MoveOnly, CompareMove<isGreaterThan<unsigned>>::compare> queue;
     200#else
    178201    PriorityQueue<MoveOnly, &CompareMove<&isGreaterThan<unsigned>>::compare> queue;
     202#endif
    179203
    180204    Vector<unsigned> values = { 23, 54, 4, 8, 1, 2, 4, 0 };
     
    208232    };
    209233
     234#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).
     235    PriorityQueue<uint64_t, isLessThan<uint64_t>> queue;
     236#else
    210237    PriorityQueue<uint64_t> queue;
     238#endif
    211239    Vector<uint64_t> values;
    212240
Note: See TracChangeset for help on using the changeset viewer.