#include "google_apis/drive/files_list_request_runner.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/task_environment.h"
#include "google_apis/common/dummy_auth_service.h"
#include "google_apis/common/request_sender.h"
#include "google_apis/drive/drive_base_requests.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/network_service.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/test/fake_test_cert_verifier_params_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace google_apis {
namespace {
const int kMaxResults = …;
const char kQuery[] = …;
const char kFields[] = …;
const char kTestUserAgent[] = …;
const char kSuccessResource[] = …;
const char kResponseTooLargeErrorResource[] = …;
const char kQuotaExceededErrorResource[] = …;
}
class FilesListRequestRunnerTest : public testing::Test { … };
TEST_F(FilesListRequestRunnerTest, Success_NoBackoff) { … }
TEST_F(FilesListRequestRunnerTest, Success_Backoff) { … }
TEST_F(FilesListRequestRunnerTest, Failure_TooManyBackoffs) { … }
TEST_F(FilesListRequestRunnerTest, Failure_AnotherError) { … }
}