Lines Matching refs:entries
21 std::vector<LogEntry>* entries) {
23 // Move the provided |entries| vector to the provided |destination| so that
25 destination->swap(*entries);
29 void CheckFlushDoesNotHappen(std::vector<LogEntry>* entries) {
43 std::vector<LogEntry> entries;
44 thread_log.TakeEntries(&entries);
46 ASSERT_EQ(2U, entries.size());
47 // The entries should appear in their insertion order.
48 const LogEntry& first_entry = entries[0];
53 const LogEntry& second_entry = entries[1];
71 std::vector<LogEntry> entries;
73 new ThreadLog(base::Bind(&FlushEntries, base::Unretained(&entries))));
82 EXPECT_EQ(0U, entries.size());
88 // The flush should have moved the data to the local vector of entries.
89 EXPECT_EQ(2U, entries.size());
90 ASSERT_EQ(2, reinterpret_cast<int>(entries[0].address));
91 ASSERT_EQ(3, reinterpret_cast<int>(entries[1].address));