#include "google_apis/common/request_sender.h"
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "google_apis/common/base_requests.h"
#include "google_apis/common/dummy_auth_service.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace google_apis {
namespace {
const char kTestRefreshToken[] = …;
const char kTestAccessToken[] = …;
enum FinishReason { … };
class TestAuthService : public DummyAuthService { … };
class RequestSenderTest : public testing::Test { … };
class TestRequest : public AuthenticatedRequestInterface { … };
}
TEST_F(RequestSenderTest, StartAndFinishRequest) { … }
TEST_F(RequestSenderTest, StartAndCancelRequest) { … }
TEST_F(RequestSenderTest, NoRefreshToken) { … }
TEST_F(RequestSenderTest, ValidRefreshTokenAndNoAccessToken) { … }
TEST_F(RequestSenderTest, AccessTokenRejectedSeveralTimes) { … }
}