#include "net/base/upload_file_element_reader.h"
#include <stdint.h>
#include <limits>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/test/gtest_util.h"
#include "net/test/test_with_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_APPLE)
#include "base/apple/scoped_nsautorelease_pool.h"
#include "base/memory/stack_allocated.h"
#endif
IsError;
IsOk;
namespace net {
class UploadFileElementReaderTest : public testing::TestWithParam<bool>,
public WithTaskEnvironment { … };
TEST_P(UploadFileElementReaderTest, ReadPartially) { … }
TEST_P(UploadFileElementReaderTest, ReadAll) { … }
TEST_P(UploadFileElementReaderTest, ReadTooMuch) { … }
TEST_P(UploadFileElementReaderTest, MultipleInit) { … }
TEST_P(UploadFileElementReaderTest, InitDuringAsyncOperation) { … }
TEST_P(UploadFileElementReaderTest, RepeatedInitDuringInit) { … }
TEST_P(UploadFileElementReaderTest, Range) { … }
TEST_P(UploadFileElementReaderTest, FileChanged) { … }
TEST_P(UploadFileElementReaderTest, InexactExpectedTimeStamp) { … }
TEST_P(UploadFileElementReaderTest, WrongPath) { … }
INSTANTIATE_TEST_SUITE_P(…);
}