Bug 1373525 - mfbt: Use unused GetPrev() member function in DoublyLinkedList test. r=froydnj
authorChris Peterson <cpeterson@mozilla.com>
Sun, 11 Jun 2017 14:39:42 -0700
changeset 414164 373ed518250a9b8d8f3186eecb2ceef1bae2317d
parent 414163 d0a00fa65e1d0df099a3b07160ae314455e5b5f3
child 414165 92e5548f16a5970794f6fd0cdd9aea77da69929f
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1373525
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1373525 - mfbt: Use unused GetPrev() member function in DoublyLinkedList test. r=froydnj mfbt/tests/TestDoublyLinkedList.cpp:138:24 [-Wunused-member-function] unused member function 'GetPrev' MozReview-Commit-ID: HQuTw0vXRKV
mfbt/tests/TestDoublyLinkedList.cpp
--- a/mfbt/tests/TestDoublyLinkedList.cpp
+++ b/mfbt/tests/TestDoublyLinkedList.cpp
@@ -152,21 +152,26 @@ TestCustomAccessor()
   InTwoLists two(2);
 
   listOne.pushBack(&one);
   listOne.pushBack(&two);
   { unsigned int check[] { 1, 2 }; CheckListValues(listOne, check); }
 
   listTwo.pushBack(&one);
   listTwo.pushBack(&two);
+  { unsigned int check[] { 1, 2 }; CheckListValues(listOne, check); }
   { unsigned int check[] { 1, 2 }; CheckListValues(listTwo, check); }
 
   (void)listTwo.popBack();
   { unsigned int check[] { 1, 2 }; CheckListValues(listOne, check); }
   { unsigned int check[] { 1 }; CheckListValues(listTwo, check); }
+
+  (void)listOne.popBack();
+  { unsigned int check[] { 1 }; CheckListValues(listOne, check); }
+  { unsigned int check[] { 1 }; CheckListValues(listTwo, check); }
 }
 
 int
 main()
 {
   TestDoublyLinkedList();
   TestCustomAccessor();
   return 0;