chromium/google_apis/common/request_sender_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 for indicating the reason why a request is finished.
enum FinishReason {};

// AuthService for testing purpose. It accepts kTestRefreshToken and returns
// kTestAccessToken + {"1", "2", "3", ...}.
class TestAuthService : public DummyAuthService {};

// The main test fixture class.
class RequestSenderTest : public testing::Test {};

// Minimal implementation for AuthenticatedRequestInterface that can interact
// with RequestSender correctly.
class TestRequest : public AuthenticatedRequestInterface {};

}  // namespace

TEST_F(RequestSenderTest, StartAndFinishRequest) {}

TEST_F(RequestSenderTest, StartAndCancelRequest) {}

TEST_F(RequestSenderTest, NoRefreshToken) {}

TEST_F(RequestSenderTest, ValidRefreshTokenAndNoAccessToken) {}

TEST_F(RequestSenderTest, AccessTokenRejectedSeveralTimes) {}

}  // namespace google_apis