summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/FixedSizeQueueTest.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-06-24 10:43:46 +0200
committerPierre Bourdon <delroth@gmail.com>2016-06-24 10:43:46 +0200
commit3570c7f03a2aa90aa634f96c0af1969af610f14d (patch)
tree4252e03c0e853ba7cffe022937698c854ad0eaa9 /Source/UnitTests/Common/FixedSizeQueueTest.cpp
parent2115e8a4a6814e32107b5205ff5c95bbd3c6e99c (diff)
Reformat all the things. Have fun with merge conflicts.
Diffstat (limited to 'Source/UnitTests/Common/FixedSizeQueueTest.cpp')
-rw-r--r--Source/UnitTests/Common/FixedSizeQueueTest.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/Source/UnitTests/Common/FixedSizeQueueTest.cpp b/Source/UnitTests/Common/FixedSizeQueueTest.cpp
index 370eb0e7e7..1461ad672f 100644
--- a/Source/UnitTests/Common/FixedSizeQueueTest.cpp
+++ b/Source/UnitTests/Common/FixedSizeQueueTest.cpp
@@ -8,26 +8,26 @@
TEST(FixedSizeQueue, Simple)
{
- FixedSizeQueue<int, 5> q;
+ FixedSizeQueue<int, 5> q;
- EXPECT_EQ(0u, q.size());
+ EXPECT_EQ(0u, q.size());
- q.push(0);
- q.push(1);
- q.push(2);
- q.push(3);
- q.push(4);
- for (int i = 0; i < 1000; ++i)
- {
- EXPECT_EQ(i, q.front());
- EXPECT_EQ(i, q.pop_front());
- q.push(i + 5);
- }
- EXPECT_EQ(1000, q.pop_front());
- EXPECT_EQ(1001, q.pop_front());
- EXPECT_EQ(1002, q.pop_front());
- EXPECT_EQ(1003, q.pop_front());
- EXPECT_EQ(1004, q.pop_front());
+ q.push(0);
+ q.push(1);
+ q.push(2);
+ q.push(3);
+ q.push(4);
+ for (int i = 0; i < 1000; ++i)
+ {
+ EXPECT_EQ(i, q.front());
+ EXPECT_EQ(i, q.pop_front());
+ q.push(i + 5);
+ }
+ EXPECT_EQ(1000, q.pop_front());
+ EXPECT_EQ(1001, q.pop_front());
+ EXPECT_EQ(1002, q.pop_front());
+ EXPECT_EQ(1003, q.pop_front());
+ EXPECT_EQ(1004, q.pop_front());
- EXPECT_EQ(0u, q.size());
+ EXPECT_EQ(0u, q.size());
}