Searched refs:SetSizeBlocking (Results 1 - 17 of 17) sorted by relevance

/external/libbrillo/brillo/streams/
H A Dmock_stream.h26 MOCK_METHOD2(SetSizeBlocking, bool(uint64_t, ErrorPtr*));
H A Dinput_stream_set.h69 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override;
H A Dtls_stream.h45 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override;
H A Dfile_stream.h104 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override;
H A Dfake_stream.h89 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override;
H A Dmemory_stream.h152 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override;
H A Dmemory_stream_unittest.cc106 TEST_F(MemoryStreamTest, SetSizeBlocking) {
110 EXPECT_TRUE(stream_->SetSizeBlocking(0, &error));
116 EXPECT_TRUE(stream_->SetSizeBlocking(kSizeMax, nullptr));
H A Dinput_stream_set.cc91 bool InputStreamSet::SetSizeBlocking(uint64_t /* size */, ErrorPtr* error) { function in class:brillo::InputStreamSet
H A Dinput_stream_set_unittest.cc52 EXPECT_FALSE(stream_->SetSizeBlocking(0, nullptr));
H A Dmemory_stream.cc99 bool MemoryStream::SetSizeBlocking(uint64_t size, ErrorPtr* error) { function in class:brillo::MemoryStream
H A Dstream.h146 virtual bool SetSizeBlocking(uint64_t size, ErrorPtr* error) = 0;
149 // Calls SetSizeBlocking(GetPosition(), ...).
H A Dfile_stream_unittest.cc271 TEST_F(FileStreamTest, SetSizeBlocking) {
273 EXPECT_TRUE(stream_->SetSizeBlocking(0, nullptr));
276 EXPECT_TRUE(stream_->SetSizeBlocking(123, nullptr));
279 EXPECT_TRUE(stream_->SetSizeBlocking(kMaxSize, nullptr));
286 EXPECT_FALSE(stream_->SetSizeBlocking(1235, &error));
291 EXPECT_FALSE(stream_->SetSizeBlocking(kTooLargeSize, &error));
296 EXPECT_FALSE(stream_->SetSizeBlocking(1235, &error));
H A Dstream_unittest.cc43 MOCK_METHOD2(SetSizeBlocking, bool(uint64_t, ErrorPtr*));
77 EXPECT_CALL(stream_mock, SetSizeBlocking(123, _)).WillOnce(Return(true));
H A Dfake_stream.cc170 bool FakeStream::SetSizeBlocking(uint64_t /* size */, ErrorPtr* error) { function in class:brillo::FakeStream
H A Dstream.cc18 return SetSizeBlocking(GetPosition(), error);
H A Dfile_stream.cc377 bool FileStream::SetSizeBlocking(uint64_t size, ErrorPtr* error) { function in class:brillo::FileStream
H A Dtls_stream.cc478 bool TlsStream::SetSizeBlocking(uint64_t /* size */, ErrorPtr* error) { function in class:brillo::TlsStream

Completed in 85 milliseconds