Searched refs:CanGetSize (Results 1 – 17 of 17) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | input_stream_set_unittest.cc | 69 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 …]
|
D | file_stream_unittest.cc | 66 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 …]
|
D | input_stream_set.cc | 76 bool InputStreamSet::CanGetSize() const { in CanGetSize() function in brillo::InputStreamSet 79 if (!stream->CanGetSize()) { in CanGetSize()
|
D | mock_stream.h | 23 MOCK_CONST_METHOD0(CanGetSize, bool());
|
D | tls_stream.h | 43 bool CanGetSize() const override { return false; } in CanGetSize() function
|
D | input_stream_set.h | 65 bool CanGetSize() const override;
|
D | fake_stream_unittest.cc | 74 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F() 86 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F() 98 EXPECT_FALSE(stream_->CanGetSize()); in TEST_F()
|
D | file_stream.h | 100 bool CanGetSize() const override;
|
D | fake_stream.h | 87 bool CanGetSize() const override { return false; } in CanGetSize() function
|
D | memory_stream.h | 148 bool CanGetSize() const override;
|
D | file_stream.cc | 369 bool FileStream::CanGetSize() const { in CanGetSize() function in brillo::FileStream 392 if (!CanGetSize()) in GetRemainingSize()
|
D | stream.h | 136 virtual bool CanGetSize() const = 0;
|
D | memory_stream.cc | 93 bool MemoryStream::CanGetSize() const { return IsOpen(); } in CanGetSize() function in brillo::MemoryStream
|
D | stream_unittest.cc | 40 MOCK_CONST_METHOD0(CanGetSize, bool());
|
/external/libbrillo/brillo/http/ |
D | http_connection_curl.cc | 100 if (request_data_stream_ && request_data_stream_->CanGetSize()) in PrepareRequest() 103 if (!request_data_stream_ || request_data_stream_->CanGetSize()) { in PrepareRequest()
|
D | http_transport_fake.cc | 160 if (stream->CanGetSize()) in SetData()
|
D | http_utils.cc | 132 if (stream && (!stream->CanGetSize() || stream->GetRemainingSize() > 0)) { in SendRequest()
|