diff --git a/src/messaging/tests/TestReliableMessageProtocol.cpp b/src/messaging/tests/TestReliableMessageProtocol.cpp index 671808eef9070a..965681f55118a9 100644 --- a/src/messaging/tests/TestReliableMessageProtocol.cpp +++ b/src/messaging/tests/TestReliableMessageProtocol.cpp @@ -225,99 +225,97 @@ struct BackoffComplianceTestVector System::Clock::Timeout backoffMax; }; -struct BackoffComplianceTestVector theBackoffComplianceTestVector[] = { - { - .sendCount = 0, - .backoffBase = System::Clock::Timeout(300), - .backoffMin = System::Clock::Timeout(330), - .backoffMax = System::Clock::Timeout(413), - }, - { - .sendCount = 1, - .backoffBase = System::Clock::Timeout(300), - .backoffMin = System::Clock::Timeout(330), - .backoffMax = System::Clock::Timeout(413), - }, - { - .sendCount = 2, - .backoffBase = System::Clock::Timeout(300), - .backoffMin = System::Clock::Timeout(528), - .backoffMax = System::Clock::Timeout(661), - }, - { - .sendCount = 3, - .backoffBase = System::Clock::Timeout(300), - .backoffMin = System::Clock::Timeout(844), - .backoffMax = System::Clock::Timeout(1057), - }, - { - .sendCount = 4, - .backoffBase = System::Clock::Timeout(300), - .backoffMin = System::Clock::Timeout(1351), - .backoffMax = System::Clock::Timeout(1691), - }, - { - .sendCount = 5, - .backoffBase = System::Clock::Timeout(300), - .backoffMin = System::Clock::Timeout(2162), - .backoffMax = System::Clock::Timeout(2705), - }, - { - .sendCount = 6, - .backoffBase = System::Clock::Timeout(300), - .backoffMin = System::Clock::Timeout(2162), - .backoffMax = System::Clock::Timeout(2705), - }, - { - .sendCount = 0, - .backoffBase = System::Clock::Timeout(4000), - .backoffMin = System::Clock::Timeout(4400), - .backoffMax = System::Clock::Timeout(5503), - }, - { - .sendCount = 1, - .backoffBase = System::Clock::Timeout(4000), - .backoffMin = System::Clock::Timeout(4400), - .backoffMax = System::Clock::Timeout(5503), - }, - { - .sendCount = 2, - .backoffBase = System::Clock::Timeout(4000), - .backoffMin = System::Clock::Timeout(7040), - .backoffMax = System::Clock::Timeout(8805), - }, - { - .sendCount = 3, - .backoffBase = System::Clock::Timeout(4000), - .backoffMin = System::Clock::Timeout(11264), - .backoffMax = System::Clock::Timeout(14088), - }, - { - .sendCount = 4, - .backoffBase = System::Clock::Timeout(4000), - .backoffMin = System::Clock::Timeout(18022), - .backoffMax = System::Clock::Timeout(22541), - }, - { - .sendCount = 5, - .backoffBase = System::Clock::Timeout(4000), - .backoffMin = System::Clock::Timeout(28835), - .backoffMax = System::Clock::Timeout(36065), - }, - { - .sendCount = 6, - .backoffBase = System::Clock::Timeout(4000), - .backoffMin = System::Clock::Timeout(28835), - .backoffMax = System::Clock::Timeout(36065), - }, - { - // test theoretical worst-case 1-hour interval - .sendCount = 4, - .backoffBase = System::Clock::Timeout(3'600'000), - .backoffMin = System::Clock::Timeout(16'220'160), - .backoffMax = System::Clock::Timeout(20'286'001), - } -}; +struct BackoffComplianceTestVector theBackoffComplianceTestVector[] = { { + .sendCount = 0, + .backoffBase = System::Clock::Timeout(300), + .backoffMin = System::Clock::Timeout(330), + .backoffMax = System::Clock::Timeout(413), + }, + { + .sendCount = 1, + .backoffBase = System::Clock::Timeout(300), + .backoffMin = System::Clock::Timeout(330), + .backoffMax = System::Clock::Timeout(413), + }, + { + .sendCount = 2, + .backoffBase = System::Clock::Timeout(300), + .backoffMin = System::Clock::Timeout(528), + .backoffMax = System::Clock::Timeout(661), + }, + { + .sendCount = 3, + .backoffBase = System::Clock::Timeout(300), + .backoffMin = System::Clock::Timeout(844), + .backoffMax = System::Clock::Timeout(1057), + }, + { + .sendCount = 4, + .backoffBase = System::Clock::Timeout(300), + .backoffMin = System::Clock::Timeout(1351), + .backoffMax = System::Clock::Timeout(1691), + }, + { + .sendCount = 5, + .backoffBase = System::Clock::Timeout(300), + .backoffMin = System::Clock::Timeout(2162), + .backoffMax = System::Clock::Timeout(2705), + }, + { + .sendCount = 6, + .backoffBase = System::Clock::Timeout(300), + .backoffMin = System::Clock::Timeout(2162), + .backoffMax = System::Clock::Timeout(2705), + }, + { + .sendCount = 0, + .backoffBase = System::Clock::Timeout(4000), + .backoffMin = System::Clock::Timeout(4400), + .backoffMax = System::Clock::Timeout(5503), + }, + { + .sendCount = 1, + .backoffBase = System::Clock::Timeout(4000), + .backoffMin = System::Clock::Timeout(4400), + .backoffMax = System::Clock::Timeout(5503), + }, + { + .sendCount = 2, + .backoffBase = System::Clock::Timeout(4000), + .backoffMin = System::Clock::Timeout(7040), + .backoffMax = System::Clock::Timeout(8805), + }, + { + .sendCount = 3, + .backoffBase = System::Clock::Timeout(4000), + .backoffMin = System::Clock::Timeout(11264), + .backoffMax = System::Clock::Timeout(14088), + }, + { + .sendCount = 4, + .backoffBase = System::Clock::Timeout(4000), + .backoffMin = System::Clock::Timeout(18022), + .backoffMax = System::Clock::Timeout(22541), + }, + { + .sendCount = 5, + .backoffBase = System::Clock::Timeout(4000), + .backoffMin = System::Clock::Timeout(28835), + .backoffMax = System::Clock::Timeout(36065), + }, + { + .sendCount = 6, + .backoffBase = System::Clock::Timeout(4000), + .backoffMin = System::Clock::Timeout(28835), + .backoffMax = System::Clock::Timeout(36065), + }, + { + // test theoretical worst-case 1-hour interval + .sendCount = 4, + .backoffBase = System::Clock::Timeout(3'600'000), + .backoffMin = System::Clock::Timeout(16'220'160), + .backoffMax = System::Clock::Timeout(20'286'001), + } }; } // namespace