Searched refs:FROM_CURRENT (Results 1 – 10 of 10) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | stream_utils_test.cc | 113 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()
|
D | file_stream_test.cc | 105 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()
|
D | stream.h | 87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enumerator
|
D | stream_utils.cc | 168 case Stream::Whence::FROM_CURRENT: in CalculateStreamPosition()
|
D | file_stream.cc | 410 case Whence::FROM_CURRENT: in Seek()
|
D | memory_stream_test.cc | 137 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_CURRENT, &new_pos, &error)); in TEST_F()
|
/external/libbrillo/brillo/timezone/ |
D | tzif_parser.cc | 137 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/ |
D | file_unittest.cc | 494 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));
|
D | file.h | 113 FROM_CURRENT = 1, enumerator
|
D | file_posix.cc | 27 static_assert(File::FROM_BEGIN == SEEK_SET && File::FROM_CURRENT == SEEK_CUR &&
|