Searched refs:FROM_BEGIN (Results 1 – 12 of 12) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | stream_utils_unittest.cc | 107 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()
|
D | file_stream_unittest.cc | 78 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()
|
D | stream.h | 87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enumerator
|
D | stream_utils.cc | 160 case Stream::Whence::FROM_BEGIN: in CalculateStreamPosition()
|
D | input_stream_set_unittest.cc | 54 EXPECT_FALSE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, nullptr, nullptr)); in TEST_F()
|
D | stream.cc | 24 return Seek(position, Whence::FROM_BEGIN, nullptr, error); in SetPosition()
|
D | file_stream.cc | 417 case Whence::FROM_BEGIN: in Seek()
|
D | memory_stream_unittest.cc | 126 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_BEGIN, &new_pos, &error)); in TEST_F()
|
D | stream_unittest.cc | 83 EXPECT_CALL(stream_mock, Seek(12345, Whence::FROM_BEGIN, _, _)) in TEST()
|
/external/libchrome/base/files/ |
D | file.h | 120 FROM_BEGIN = 0, enumerator
|
D | file_unittest.cc | 400 EXPECT_EQ(0, file.Seek(base::File::FROM_BEGIN, 0)); 444 EXPECT_EQ(kOffset, file.Seek(base::File::FROM_BEGIN, kOffset));
|
D | file_posix.cc | 27 static_assert(File::FROM_BEGIN == SEEK_SET && File::FROM_CURRENT == SEEK_CUR &&
|