first commit
This commit is contained in:
17
test/sp/protocol/packet/PacketFactory_test.cpp
Normal file
17
test/sp/protocol/packet/PacketFactory_test.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
// #include <sp/protocol/packet/PacketFactory.h>
|
||||
|
||||
// #include <sp/misc/Test.h>
|
||||
|
||||
// static int Test() {
|
||||
// for (std::size_t i = 0; i < static_cast<int>(td::protocol::PacketType::PACKET_COUNT); i++) {
|
||||
// td::protocol::PacketType packetType = sp::protocol::PacketType(i);
|
||||
|
||||
// if (td::protocol::PacketFactory::CreateReadOnlyPacket(packetType)->GetType() != packetType)
|
||||
// return SP_TEST_FAILED;
|
||||
// }
|
||||
// return SP_TEST_SUCCESSFUL;
|
||||
// }
|
||||
|
||||
// int main() {
|
||||
// return Test();
|
||||
// }
|
||||
Reference in New Issue
Block a user