mirror of
https://github.com/nasa/fprime.git
synced 2025-12-14 21:41:13 -06:00
* Format Fw and add to CI * Fix include of HPP file instead of H in extern C * Fix format strings
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
// ======================================================================
|
|
// \title Fw/FilePacket/GTest/StartPacket.cpp
|
|
// \author bocchino
|
|
// \brief Test utilities for start file packets
|
|
//
|
|
// \copyright
|
|
// Copyright (C) 2016, California Institute of Technology.
|
|
// ALL RIGHTS RESERVED. United States Government Sponsorship
|
|
// acknowledged.
|
|
//
|
|
// ======================================================================
|
|
|
|
#include <Fw/FilePacket/GTest/FilePackets.hpp>
|
|
#include <Fw/Types/GTest/Bytes.hpp>
|
|
|
|
namespace Fw {
|
|
|
|
namespace GTest {
|
|
|
|
void FilePackets::StartPacket ::compare(const FilePacket::StartPacket& expected,
|
|
const FilePacket::StartPacket& actual) {
|
|
FilePackets::Header::compare(expected.asHeader(), actual.asHeader());
|
|
ASSERT_EQ(expected.getFileSize(), actual.getFileSize());
|
|
PathName::compare(expected.getSourcePath(), actual.getSourcePath());
|
|
PathName::compare(expected.getDestinationPath(), actual.getDestinationPath());
|
|
}
|
|
|
|
} // namespace GTest
|
|
|
|
} // namespace Fw
|