Home
last modified time | relevance | path

Searched refs:file_attrs (Results 1 – 1 of 1) sorted by relevance

/system/extras/simpleperf/
Drecord_file_test.cpp81 const std::vector<FileAttr>& file_attrs = reader->AttrSection(); in TEST_F() local
82 ASSERT_EQ(1u, file_attrs.size()); in TEST_F()
83 ASSERT_EQ(0, memcmp(&file_attrs[0].attr, attr_ids_[0].attr, sizeof(perf_event_attr))); in TEST_F()
85 ASSERT_TRUE(reader->ReadIdsForAttr(file_attrs[0], &ids)); in TEST_F()
153 const std::vector<FileAttr>& file_attrs = reader->AttrSection(); in TEST_F() local
154 ASSERT_EQ(3u, file_attrs.size()); in TEST_F()
155 for (size_t i = 0; i < file_attrs.size(); ++i) { in TEST_F()
156 ASSERT_EQ(0, memcmp(&file_attrs[i].attr, attr_ids_[i].attr, sizeof(perf_event_attr))); in TEST_F()
158 ASSERT_TRUE(reader->ReadIdsForAttr(file_attrs[i], &ids)); in TEST_F()