Home
last modified time | relevance | path

Searched refs:FROM_BEGIN (Results 1 – 12 of 12) sorted by relevance

/external/libbrillo/brillo/streams/
Dstream_utils_unittest.cc107 FROM_HERE, 0, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
119 FROM_HERE, 10, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
142 FROM_HERE, -1, Whence::FROM_BEGIN, current_pos, end_pos, &pos, &error)); in TEST()
Dfile_stream_unittest.cc78 EXPECT_TRUE(stream->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
94 EXPECT_TRUE(stream->Seek(10, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
314 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
318 EXPECT_TRUE(stream_->Seek(123456, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
323 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, &pos, in TEST_F()
326 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, nullptr, in TEST_F()
366 EXPECT_FALSE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, nullptr, &error)); in TEST_F()
Dstream.h87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enumerator
Dstream_utils.cc160 case Stream::Whence::FROM_BEGIN: in CalculateStreamPosition()
Dinput_stream_set_unittest.cc54 EXPECT_FALSE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, nullptr, nullptr)); in TEST_F()
Dstream.cc24 return Seek(position, Whence::FROM_BEGIN, nullptr, error); in SetPosition()
Dfile_stream.cc417 case Whence::FROM_BEGIN: in Seek()
Dmemory_stream_unittest.cc126 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_BEGIN, &new_pos, &error)); in TEST_F()
Dstream_unittest.cc83 EXPECT_CALL(stream_mock, Seek(12345, Whence::FROM_BEGIN, _, _)) in TEST()
/external/libchrome/base/files/
Dfile.h120 FROM_BEGIN = 0, enumerator
Dfile_unittest.cc400 EXPECT_EQ(0, file.Seek(base::File::FROM_BEGIN, 0));
444 EXPECT_EQ(kOffset, file.Seek(base::File::FROM_BEGIN, kOffset));
Dfile_posix.cc27 static_assert(File::FROM_BEGIN == SEEK_SET && File::FROM_CURRENT == SEEK_CUR &&