예제 #1
0
TEST(GetSecondLast, NonEmpty) {
    History history;
    std::vector<CorrelationAircraft> aircraft;
    time_t timestamp;
    Snapshot snapshot = Snapshot(&aircraft, timestamp);
    history.AddSnapshot(&snapshot);
    EXPECT_EQ(history.GetLast(), &snapshot);
}
예제 #2
0
TEST(GetLast, Empty) {
    History history;
    EXPECT_EQ(NULL, history.GetLast());
}