Home
last modified time | relevance | path

Searched refs:CanGetSize (Results 1 – 17 of 17) sorted by relevance

/external/libbrillo/brillo/streams/
Dinput_stream_set_unittest.cc69 EXPECT_CALL(*itf1_, CanGetSize()).WillOnce(Return(true)); in TEST_F()
70 EXPECT_CALL(*itf2_, CanGetSize()).WillOnce(Return(true)); in TEST_F()
71 EXPECT_TRUE(stream_->CanGetSize()); in TEST_F()
82 TEST_F(InputStreamSetTest, CanGetSize) { in TEST_F() argument
83 EXPECT_CALL(*itf1_, CanGetSize()).WillOnce(Return(true)); in TEST_F()
84 EXPECT_CALL(*itf2_, CanGetSize()).WillOnce(Return(true)); in TEST_F()
85 EXPECT_TRUE(stream_->CanGetSize()); in TEST_F()
87 EXPECT_CALL(*itf1_, CanGetSize()).WillOnce(Return(false)); in TEST_F()
88 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
90 EXPECT_CALL(*itf1_, CanGetSize()).WillOnce(Return(true)); in TEST_F()
[all …]
Dfile_stream_unittest.cc66 EXPECT_TRUE(stream->CanGetSize()); in TestCreateFile()
242 TEST_F(FileStreamTest, CanGetSize) { in TEST_F() argument
244 EXPECT_TRUE(stream_->CanGetSize()); in TEST_F()
246 EXPECT_TRUE(stream_->CanGetSize()); in TEST_F()
248 EXPECT_TRUE(stream_->CanGetSize()); in TEST_F()
250 EXPECT_TRUE(stream_->CanGetSize()); in TEST_F()
252 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
254 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
256 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
259 EXPECT_TRUE(stream_->CanGetSize()); in TEST_F()
[all …]
Dinput_stream_set.cc76 bool InputStreamSet::CanGetSize() const { in CanGetSize() function in brillo::InputStreamSet
79 if (!stream->CanGetSize()) { in CanGetSize()
Dmock_stream.h23 MOCK_CONST_METHOD0(CanGetSize, bool());
Dtls_stream.h43 bool CanGetSize() const override { return false; } in CanGetSize() function
Dinput_stream_set.h65 bool CanGetSize() const override;
Dfake_stream_unittest.cc74 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
86 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
98 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
Dfile_stream.h100 bool CanGetSize() const override;
Dfake_stream.h87 bool CanGetSize() const override { return false; } in CanGetSize() function
Dmemory_stream.h148 bool CanGetSize() const override;
Dfile_stream.cc369 bool FileStream::CanGetSize() const { in CanGetSize() function in brillo::FileStream
392 if (!CanGetSize()) in GetRemainingSize()
Dstream.h136 virtual bool CanGetSize() const = 0;
Dmemory_stream.cc93 bool MemoryStream::CanGetSize() const { return IsOpen(); } in CanGetSize() function in brillo::MemoryStream
Dstream_unittest.cc40 MOCK_CONST_METHOD0(CanGetSize, bool());
/external/libbrillo/brillo/http/
Dhttp_connection_curl.cc100 if (request_data_stream_ && request_data_stream_->CanGetSize()) in PrepareRequest()
103 if (!request_data_stream_ || request_data_stream_->CanGetSize()) { in PrepareRequest()
Dhttp_transport_fake.cc160 if (stream->CanGetSize()) in SetData()
Dhttp_utils.cc132 if (stream && (!stream->CanGetSize() || stream->GetRemainingSize() > 0)) { in SendRequest()