D | heap_simulator_test.cc | 1051 InheritedGlobalDecreasingSizeBestFitHeap heap_; member in xla::__anon72fb25430111::GlobalDecreasingSizeBestFitHeapTest 1316 EXPECT_EQ(pair(5, 10), heap_.FindChunkCandidate(buffer_a_, 5, 6, 10, 5)); in TEST_F() 1317 heap_.CommitChunk(); // offset: 5, size: 5, start: 6, end: 10 in TEST_F() 1319 EXPECT_EQ(pair(0, 10), heap_.FindChunkCandidate(buffer_b_, 10, 3, 5)); in TEST_F() 1320 heap_.CommitChunk(); // offset: 0, size: 10, start: 3, end: 5 in TEST_F() 1321 EXPECT_EQ(pair(10, 15), heap_.FindChunkCandidate(buffer_c_, 5, 2, 8)); in TEST_F() 1322 heap_.CommitChunk(); // offset: 10, size: 5, start: 2, end: 8 in TEST_F() 1323 EXPECT_EQ(pair(0, 15), heap_.FindChunkCandidate(buffer_d_, 5, 0, 2, 10)); in TEST_F() 1324 heap_.CommitChunk(); // offset: 0, size: 5, start: 0, end: 2 in TEST_F() 1326 EXPECT_EQ(pair(10, 20), heap_.FindChunkCandidate(buffer_e_, 10, 11, 13, 10)); in TEST_F() [all …]
|