Home
last modified time | relevance | path

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

/external/libbrillo/brillo/streams/
Dstream_utils_test.cc113 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); in TEST()
125 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
134 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
149 FROM_HERE, -1001, Whence::FROM_CURRENT, 1000, end_pos, &pos, nullptr)); in TEST()
153 FROM_HERE, 1, Whence::FROM_CURRENT, max_int64, end_pos, &pos, nullptr)); in TEST()
Dfile_stream_test.cc105 EXPECT_TRUE(stream->Seek(7, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
109 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TestCreateFile()
113 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
349 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TEST_F()
353 EXPECT_TRUE(stream_->Seek(234, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TEST_F()
357 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.cc168 case Stream::Whence::FROM_CURRENT: in CalculateStreamPosition()
Dfile_stream.cc410 case Whence::FROM_CURRENT: in Seek()
Dmemory_stream_test.cc137 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_CURRENT, &new_pos, &error)); in TEST_F()
/external/libbrillo/brillo/timezone/
Dtzif_parser.cc137 tzfile.Seek(base::File::FROM_CURRENT, first_body_size); in GetPosixTimezone()
149 int64_t offset = tzfile.Seek(base::File::FROM_CURRENT, second_body_size); in GetPosixTimezone()
/external/libchrome/base/files/
Dfile_unittest.cc494 EXPECT_EQ(2 * kOffset, file.Seek(base::File::FROM_CURRENT, kOffset));
495 EXPECT_EQ(kOffset, file.Seek(base::File::FROM_CURRENT, -kOffset));
516 ASSERT_EQ(0, file.Seek(base::File::FROM_CURRENT, 0));
517 ASSERT_EQ(0, file2.Seek(base::File::FROM_CURRENT, 0));
519 ASSERT_EQ(kDataLen, file.Seek(base::File::FROM_CURRENT, 0));
520 ASSERT_EQ(kDataLen, file2.Seek(base::File::FROM_CURRENT, 0));
Dfile.h113 FROM_CURRENT = 1, enumerator
Dfile_posix.cc27 static_assert(File::FROM_BEGIN == SEEK_SET && File::FROM_CURRENT == SEEK_CUR &&