1414//
1515// SPDX-License-Identifier: Apache-2.0
1616
17- #include " iceoryx_hoofs/cxx /stack.hpp"
17+ #include " iox /stack.hpp"
1818#include " test.hpp"
1919
2020#include < vector>
@@ -127,7 +127,7 @@ class stack_test : public Test
127127{
128128 public:
129129 static constexpr uint32_t STACK_SIZE = 10U ;
130- cxx:: stack<TestClass, STACK_SIZE> m_sut;
130+ stack<TestClass, STACK_SIZE> m_sut;
131131
132132 void pushElements (const uint32_t numberOfElements)
133133 {
@@ -216,7 +216,7 @@ TEST_F(stack_test, TestClassDTorIsCalledWhenStackGoesOutOfScope)
216216{
217217 ::testing::Test::RecordProperty (" TEST_ID" , " 3c496cb7-898b-4a65-a405-c42cbd7f0d7b" );
218218 {
219- cxx:: stack<TestClass, STACK_SIZE> sut;
219+ stack<TestClass, STACK_SIZE> sut;
220220 sut.push ();
221221 sut.push (1U , 2U , 3U );
222222 EXPECT_THAT (TestClass::dTor, Eq (0 ));
@@ -228,7 +228,7 @@ TEST_F(stack_test, StackDestroysElementsInReverseOrder)
228228{
229229 ::testing::Test::RecordProperty (" TEST_ID" , " fb38b063-4921-46ae-bdf2-922f49a9ab41" );
230230 {
231- cxx:: stack<TestClass, STACK_SIZE> sut;
231+ stack<TestClass, STACK_SIZE> sut;
232232 for (uint32_t i{0 }; i < STACK_SIZE; ++i)
233233 {
234234 sut.push (i + 3 , i + 1 , i + 2 );
@@ -248,7 +248,7 @@ TEST_F(stack_test, CopyConstructorWorksAndCallsTestClassCopyConstructor)
248248 constexpr uint32_t ELEMENT{13 };
249249 m_sut.push (ELEMENT, ELEMENT, ELEMENT);
250250
251- cxx:: stack<TestClass, STACK_SIZE> testStack (m_sut);
251+ stack<TestClass, STACK_SIZE> testStack (m_sut);
252252 EXPECT_THAT (TestClass::copyCTor, Eq (1 ));
253253 ASSERT_THAT (testStack.size (), Eq (1 ));
254254 EXPECT_THAT (testStack.pop ().value (), Eq (TestClass (ELEMENT, ELEMENT, ELEMENT)));
@@ -257,7 +257,7 @@ TEST_F(stack_test, CopyConstructorWorksAndCallsTestClassCopyConstructor)
257257TEST_F (stack_test, CopyConstructorWithEmptyStackWorks)
258258{
259259 ::testing::Test::RecordProperty (" TEST_ID" , " 08bfe7d9-233e-47cc-a7ca-5520eb6b99df" );
260- cxx:: stack<TestClass, STACK_SIZE> testStack (m_sut);
260+ stack<TestClass, STACK_SIZE> testStack (m_sut);
261261 EXPECT_THAT (TestClass::copyCTor, Eq (0 ));
262262 EXPECT_THAT (testStack.size (), Eq (0 ));
263263}
@@ -267,7 +267,7 @@ TEST_F(stack_test, CopyConstructorWithFullStackWorks)
267267 ::testing::Test::RecordProperty (" TEST_ID" , " f5ff8a1c-8bd4-40a9-9b10-7e90f232d78a" );
268268 pushElements (STACK_SIZE);
269269
270- cxx:: stack<TestClass, STACK_SIZE> testStack (m_sut);
270+ stack<TestClass, STACK_SIZE> testStack (m_sut);
271271 EXPECT_THAT (TestClass::copyCTor, Eq (STACK_SIZE));
272272 EXPECT_THAT (testStack.size (), Eq (STACK_SIZE));
273273
@@ -283,7 +283,7 @@ TEST_F(stack_test, CopyAssignmentWithEmptySourceWorks)
283283{
284284 ::testing::Test::RecordProperty (" TEST_ID" , " 0b563f12-e565-49d8-ba62-7d9a2323afdb" );
285285 pushElements (STACK_SIZE);
286- cxx:: stack<TestClass, STACK_SIZE> testStack;
286+ stack<TestClass, STACK_SIZE> testStack;
287287
288288 m_sut = testStack;
289289
@@ -297,7 +297,7 @@ TEST_F(stack_test, CopyAssignmentWithEmptyDestinationWorks)
297297{
298298 ::testing::Test::RecordProperty (" TEST_ID" , " 81ea12ea-14ad-474c-bfd7-72433c780ceb" );
299299 pushElements (STACK_SIZE);
300- cxx:: stack<TestClass, STACK_SIZE> testStack;
300+ stack<TestClass, STACK_SIZE> testStack;
301301
302302 testStack = m_sut;
303303
@@ -318,7 +318,7 @@ TEST_F(stack_test, CopyAssignmentWithLargerDestinationWorks)
318318{
319319 ::testing::Test::RecordProperty (" TEST_ID" , " 2f07ec25-fd62-414f-bb41-9284ce9f69b2" );
320320 pushElements (STACK_SIZE);
321- cxx:: stack<TestClass, STACK_SIZE> testStack;
321+ stack<TestClass, STACK_SIZE> testStack;
322322 testStack.push (9U , 11U , 13U );
323323 const auto srcSize = testStack.size ();
324324
@@ -335,7 +335,7 @@ TEST_F(stack_test, CopyAssignmentWithLargerSourceWorks)
335335{
336336 ::testing::Test::RecordProperty (" TEST_ID" , " 1a001c09-abc2-4518-a47a-30d41aca3be4" );
337337 pushElements (STACK_SIZE);
338- cxx:: stack<TestClass, STACK_SIZE> testStack;
338+ stack<TestClass, STACK_SIZE> testStack;
339339 testStack.push (17U , 19U , 23U );
340340 const auto destSize = testStack.size ();
341341
@@ -358,7 +358,7 @@ TEST_F(stack_test, MoveConstructorWorksAndCallsTestClassMoveConstructor)
358358 ::testing::Test::RecordProperty (" TEST_ID" , " e3ad8e37-a95a-4f35-bee0-c83961c626a7" );
359359 constexpr uint32_t ELEMENT{46 };
360360 m_sut.push (ELEMENT, ELEMENT, ELEMENT);
361- cxx:: stack<TestClass, STACK_SIZE> testStack (std::move (m_sut));
361+ stack<TestClass, STACK_SIZE> testStack (std::move (m_sut));
362362
363363 EXPECT_THAT (TestClass::moveCTor, Eq (1 ));
364364 ASSERT_THAT (testStack.size (), Eq (1 ));
@@ -369,7 +369,7 @@ TEST_F(stack_test, MoveConstructorWorksAndCallsTestClassMoveConstructor)
369369TEST_F (stack_test, MoveConstructorWithEmptyStackWorks)
370370{
371371 ::testing::Test::RecordProperty (" TEST_ID" , " 2cb3bfc8-ef86-4648-90e0-c0d4375834cc" );
372- cxx:: stack<TestClass, STACK_SIZE> testStack (std::move (m_sut));
372+ stack<TestClass, STACK_SIZE> testStack (std::move (m_sut));
373373 EXPECT_THAT (TestClass::moveCTor, Eq (0 ));
374374 EXPECT_THAT (testStack.size (), Eq (0 ));
375375 EXPECT_THAT (m_sut.size (), Eq (0 ));
@@ -379,7 +379,7 @@ TEST_F(stack_test, MoveConstructorWithFullStackWorks)
379379{
380380 ::testing::Test::RecordProperty (" TEST_ID" , " 08661d3d-89d7-4ada-ba78-757e92eeb8d4" );
381381 pushElements (STACK_SIZE);
382- cxx:: stack<TestClass, STACK_SIZE> testStack (std::move (m_sut));
382+ stack<TestClass, STACK_SIZE> testStack (std::move (m_sut));
383383
384384 EXPECT_THAT (TestClass::moveCTor, Eq (STACK_SIZE));
385385 EXPECT_THAT (testStack.size (), Eq (STACK_SIZE));
@@ -397,7 +397,7 @@ TEST_F(stack_test, MoveAssignmentWithEmptySourceWorks)
397397{
398398 ::testing::Test::RecordProperty (" TEST_ID" , " a06a3f8e-a886-43e2-b119-adc66c2af799" );
399399 pushElements (STACK_SIZE);
400- cxx:: stack<TestClass, STACK_SIZE> testStack;
400+ stack<TestClass, STACK_SIZE> testStack;
401401
402402 m_sut = std::move (testStack);
403403
@@ -414,7 +414,7 @@ TEST_F(stack_test, MoveAssignmentWithEmptyDestinationWorks)
414414{
415415 ::testing::Test::RecordProperty (" TEST_ID" , " b67825b9-2053-453d-a2b7-5fe544f7b16d" );
416416 pushElements (STACK_SIZE);
417- cxx:: stack<TestClass, STACK_SIZE> testStack;
417+ stack<TestClass, STACK_SIZE> testStack;
418418
419419 testStack = std::move (m_sut);
420420
@@ -436,7 +436,7 @@ TEST_F(stack_test, MoveAssignmentWithLargerDestinationWorks)
436436{
437437 ::testing::Test::RecordProperty (" TEST_ID" , " de0b02d2-762e-41e7-a179-bd3f57da5dc6" );
438438 pushElements (STACK_SIZE);
439- cxx:: stack<TestClass, STACK_SIZE> testStack;
439+ stack<TestClass, STACK_SIZE> testStack;
440440 testStack.push (9U , 11U , 13U );
441441 const auto srcSize = testStack.size ();
442442
@@ -456,7 +456,7 @@ TEST_F(stack_test, MoveAssignmentWithLargerSourceWorks)
456456{
457457 ::testing::Test::RecordProperty (" TEST_ID" , " 7ff5a53d-18f7-447d-8bc8-04d2f9e38caa" );
458458 pushElements (STACK_SIZE);
459- cxx:: stack<TestClass, STACK_SIZE> testStack;
459+ stack<TestClass, STACK_SIZE> testStack;
460460 testStack.push (17U , 19U , 23U );
461461 const auto destSize = testStack.size ();
462462
0 commit comments