#include "remoting/host/file_transfer/buffered_file_writer.h"
#include "base/functional/bind.h"
#include "base/test/task_environment.h"
#include "remoting/host/file_transfer/fake_file_operations.h"
#include "remoting/host/file_transfer/test_byte_vector_utils.h"
#include "remoting/protocol/file_transfer_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
class BufferedFileWriterTest : public testing::Test { … };
BufferedFileWriterTest::BufferedFileWriterTest() = default;
BufferedFileWriterTest::~BufferedFileWriterTest() = default;
void BufferedFileWriterTest::SetUp() { … }
void BufferedFileWriterTest::TearDown() { … }
void BufferedFileWriterTest::OnCompleted() { … }
void BufferedFileWriterTest::OnError(protocol::FileTransfer_Error error) { … }
TEST_F(BufferedFileWriterTest, WritesThreeChunks) { … }
TEST_F(BufferedFileWriterTest, QueuesOperations) { … }
TEST_F(BufferedFileWriterTest, HandlesWriteError) { … }
TEST_F(BufferedFileWriterTest, CancelsWriter) { … }
}