Searched refs:tmp_file_ (Results 1 – 3 of 3) sorted by relevance
/system/extras/memory_replay/tests/ |
D | NativeInfoTest.cpp | 29 tmp_file_ = new TemporaryFile(); in SetUp() 30 ASSERT_TRUE(tmp_file_->fd != -1); in SetUp() 34 delete tmp_file_; in TearDown() 37 TemporaryFile* tmp_file_ = nullptr; member in NativeInfoTest 59 write(tmp_file_->fd, smaps_data.c_str(), smaps_data.size())) != -1); in TEST_F() 60 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 64 GetNativeInfo(tmp_file_->fd, &pss_bytes, &va_bytes); in TEST_F() 120 write(tmp_file_->fd, smaps_data.c_str(), smaps_data.size())) != -1); in TEST_F() 121 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 125 GetNativeInfo(tmp_file_->fd, &pss_bytes, &va_bytes); in TEST_F() [all …]
|
D | LineBufferTest.cpp | 28 tmp_file_ = new TemporaryFile(); in SetUp() 29 ASSERT_TRUE(tmp_file_->fd != -1); in SetUp() 33 delete tmp_file_; in TearDown() 36 TemporaryFile* tmp_file_ = nullptr; member in LineBufferTest 43 write(tmp_file_->fd, line_data.c_str(), line_data.size())) != -1); in TEST_F() 44 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 47 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() 62 write(tmp_file_->fd, line_data.c_str(), line_data.size())) != -1); in TEST_F() 63 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 66 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() [all …]
|
/system/core/libcutils/tests/ |
D | trace-dev_test.cpp | 33 lseek(tmp_file_.fd, 0, SEEK_SET); in SetUp() 34 atrace_marker_fd = tmp_file_.fd; in SetUp() 41 TemporaryFile tmp_file_; member in TraceDevTest
|