Searched refs:FROM_CURRENT (Results 1 – 9 of 9) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | stream_utils_unittest.cc | 111 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); in TEST() 123 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST() 132 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST() 147 FROM_HERE, -1001, Whence::FROM_CURRENT, 1000, end_pos, &pos, nullptr)); in TEST() 151 FROM_HERE, 1, Whence::FROM_CURRENT, max_int64, end_pos, &pos, nullptr)); in TEST()
|
D | file_stream_unittest.cc | 102 EXPECT_TRUE(stream->Seek(7, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile() 106 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TestCreateFile() 110 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile() 334 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TEST_F() 338 EXPECT_TRUE(stream_->Seek(234, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TEST_F() 342 EXPECT_TRUE(stream_->Seek(-100, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TEST_F()
|
D | stream.h | 87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enumerator
|
D | stream_utils.cc | 164 case Stream::Whence::FROM_CURRENT: in CalculateStreamPosition()
|
D | file_stream.cc | 420 case Whence::FROM_CURRENT: in Seek()
|
D | memory_stream_unittest.cc | 130 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_CURRENT, &new_pos, &error)); in TEST_F()
|
/external/libchrome/base/files/ |
D | file_unittest.cc | 448 EXPECT_EQ(2 * kOffset, file.Seek(base::File::FROM_CURRENT, kOffset)); 449 EXPECT_EQ(kOffset, file.Seek(base::File::FROM_CURRENT, -kOffset)); 470 ASSERT_EQ(0, file.Seek(base::File::FROM_CURRENT, 0)); 471 ASSERT_EQ(0, file2.Seek(base::File::FROM_CURRENT, 0)); 473 ASSERT_EQ(kDataLen, file.Seek(base::File::FROM_CURRENT, 0)); 474 ASSERT_EQ(kDataLen, file2.Seek(base::File::FROM_CURRENT, 0));
|
D | file.h | 125 FROM_CURRENT = 1, enumerator
|
D | file_posix.cc | 27 static_assert(File::FROM_BEGIN == SEEK_SET && File::FROM_CURRENT == SEEK_CUR &&
|