Home
last modified time | relevance | path

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

/external/libbrillo/brillo/streams/
Dstream_utils_unittest.cc111 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()
Dfile_stream_unittest.cc102 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()
Dstream.h87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enumerator
Dstream_utils.cc164 case Stream::Whence::FROM_CURRENT: in CalculateStreamPosition()
Dfile_stream.cc420 case Whence::FROM_CURRENT: in Seek()
Dmemory_stream_unittest.cc130 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_CURRENT, &new_pos, &error)); in TEST_F()
/external/libchrome/base/files/
Dfile_unittest.cc448 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));
Dfile.h125 FROM_CURRENT = 1, enumerator
Dfile_posix.cc27 static_assert(File::FROM_BEGIN == SEEK_SET && File::FROM_CURRENT == SEEK_CUR &&