| Index: net/base/priority_queue_unittest.cc
|
| diff --git a/net/base/priority_queue_unittest.cc b/net/base/priority_queue_unittest.cc
|
| index 87a829929feb426103a7dedf5f9284a989303b80..0f90bd627e6ec1eb61deb9e4715472c324621f48 100644
|
| --- a/net/base/priority_queue_unittest.cc
|
| +++ b/net/base/priority_queue_unittest.cc
|
| @@ -13,13 +13,13 @@ namespace net {
|
| namespace {
|
|
|
| typedef PriorityQueue<int>::Priority Priority;
|
| -const Priority kPriorities[] = { 2, 1, 2, 0, 4, 3, 1, 4, 0 };
|
| +const Priority kPriorities[] = {2, 1, 2, 0, 4, 3, 1, 4, 0};
|
| const Priority kNumPriorities = 5; // max(kPriorities) + 1
|
| const size_t kNumElements = arraysize(kPriorities);
|
| -const int kFirstMinOrder[kNumElements] = { 3, 8, 1, 6, 0, 2, 5, 4, 7 };
|
| -const int kLastMaxOrderErase[kNumElements] = { 7, 4, 5, 2, 0, 6, 1, 8, 3 };
|
| -const int kFirstMaxOrder[kNumElements] = { 4, 7, 5, 0, 2, 1, 6, 3, 8 };
|
| -const int kLastMinOrder[kNumElements] = { 8, 3, 6, 1, 2, 0, 5, 7, 4 };
|
| +const int kFirstMinOrder[kNumElements] = {3, 8, 1, 6, 0, 2, 5, 4, 7};
|
| +const int kLastMaxOrderErase[kNumElements] = {7, 4, 5, 2, 0, 6, 1, 8, 3};
|
| +const int kFirstMaxOrder[kNumElements] = {4, 7, 5, 0, 2, 1, 6, 3, 8};
|
| +const int kLastMinOrder[kNumElements] = {8, 3, 6, 1, 2, 0, 5, 7, 4};
|
|
|
| class PriorityQueueTest : public testing::Test {
|
| protected:
|
| @@ -122,7 +122,7 @@ TEST_F(PriorityQueueTest, EraseFromMiddle) {
|
| queue_.Erase(pointers_[2]);
|
| queue_.Erase(pointers_[3]);
|
|
|
| - const int expected_order[] = { 8, 1, 6, 0, 5, 4, 7 };
|
| + const int expected_order[] = {8, 1, 6, 0, 5, 4, 7};
|
|
|
| for (size_t i = 0; i < arraysize(expected_order); ++i) {
|
| EXPECT_EQ(expected_order[i], queue_.FirstMin().value());
|
| @@ -137,7 +137,7 @@ TEST_F(PriorityQueueTest, InsertAtFront) {
|
| queue_.InsertAtFront(11, 1);
|
| queue_.InsertAtFront(12, 1);
|
|
|
| - const int expected_order[] = { 10, 3, 8, 12, 11, 1, 6, 9, 0, 2, 5, 4, 7 };
|
| + const int expected_order[] = {10, 3, 8, 12, 11, 1, 6, 9, 0, 2, 5, 4, 7};
|
|
|
| for (size_t i = 0; i < arraysize(expected_order); ++i) {
|
| EXPECT_EQ(expected_order[i], queue_.FirstMin().value());
|
|
|