-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ActiveTextLogger: make tests runnable * ActiveTextLogger: fix unit tests * ActiveTextLogger: use camelCase for test names * ActiveTextLogger: add test for workstation timestamp * ActiveTextLogger: remove logging of local workstation time (issue #2815) * ActiveTextLogger: mention file truncation in the SDD * Changing PRId32 to PRIu32 for time fields. * Assert of string compare to ASSERT_STREQ --------- Co-authored-by: M Starch <[email protected]>
- Loading branch information
Showing
7 changed files
with
83 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// ====================================================================== | ||
// \title ActiveTextLoggerTestMain.cpp | ||
// \author AlesKus | ||
// \brief cpp file for ActiveTextLogger component test main function | ||
// ====================================================================== | ||
|
||
#include "ActiveTextLoggerTester.hpp" | ||
|
||
|
||
TEST(Nominal, Logging) { | ||
Svc::ActiveTextLoggerTester tester; | ||
tester.runNominalTest(); | ||
} | ||
|
||
TEST(Nominal, WorkstationTime) { | ||
Svc::ActiveTextLoggerTester tester; | ||
tester.testWorkstationTimestamp(); | ||
} | ||
|
||
TEST(OffNominal, FileHandling) { | ||
Svc::ActiveTextLoggerTester tester; | ||
tester.runOffNominalTest(); | ||
} | ||
|
||
int main(int argc, char** argv) { | ||
::testing::InitGoogleTest(&argc, argv); | ||
return RUN_ALL_TESTS(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters