Lines Matching refs:history
21 std::vector<EventLogger::Event> history = logger.GetHistory();
22 ASSERT_EQ(3U, history.size());
23 EXPECT_EQ(0, history[0].id);
24 EXPECT_EQ("first", history[0].what);
25 EXPECT_EQ(1, history[1].id);
26 EXPECT_EQ("2nd", history[1].what);
27 EXPECT_EQ(2, history[2].id);
28 EXPECT_EQ("third", history[2].what);
32 history = logger.GetHistory();
33 ASSERT_EQ(3U, history.size());
35 EXPECT_EQ(1, history[0].id);
36 EXPECT_EQ("2nd", history[0].what);
37 EXPECT_EQ(2, history[1].id);
38 EXPECT_EQ("third", history[1].what);
39 EXPECT_EQ(3, history[2].id);
40 EXPECT_EQ("fourth", history[2].what);