chromium/google_apis/gaia/oauth2_api_call_flow_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// A complete set of unit tests for OAuth2MintTokenFlow.

#include "google_apis/gaia/oauth2_api_call_flow.h"

#include <memory>
#include <string>
#include <utility>

#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "google_apis/gaia/gaia_urls.h"
#include "google_apis/gaia/google_service_auth_error.h"
#include "google_apis/gaia/oauth2_access_token_consumer.h"
#include "google_apis/gaia/oauth2_access_token_fetcher_impl.h"
#include "net/base/net_errors.h"
#include "net/http/http_request_headers.h"
#include "net/http/http_status_code.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

HttpRequestHeaders;
_;
ByMove;
Return;
StrictMock;

namespace {

const char kAccessToken[] =;

static std::string CreateBody() {}

static GURL CreateApiUrl() {}


class MockApiCallFlow : public OAuth2ApiCallFlow {};

}  // namespace

class OAuth2ApiCallFlowTest : public testing::Test {};

TEST_F(OAuth2ApiCallFlowTest, ApiCallSucceedsHttpOk) {}

TEST_F(OAuth2ApiCallFlowTest, ApiCallSucceedsHttpNoContent) {}

TEST_F(OAuth2ApiCallFlowTest, ApiCallFailure) {}

TEST_F(OAuth2ApiCallFlowTest, ExpectedHTTPHeaders) {}

net::HttpRequestHeaders CreateHeaders() {}

TEST_F(OAuth2ApiCallFlowTest, ExpectedMultipleHTTPHeaders) {}