chromium/google_apis/common/base_requests_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.

#include "google_apis/common/base_requests.h"

#include <stdint.h>

#include <memory>
#include <utility>

#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "google_apis/common/dummy_auth_service.h"
#include "google_apis/common/request_sender.h"
#include "google_apis/common/test_util.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_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/public/mojom/url_response_head.mojom.h"
#include "services/network/test/fake_test_cert_verifier_params_factory.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace google_apis {

namespace {

const char kValidJsonString[] =;
const char kInvalidJsonString[] =;

class FakeUrlFetchRequest : public UrlFetchRequestBase {};

}  // namespace

class BaseRequestsTest : public testing::Test {};

TEST_F(BaseRequestsTest, ParseValidJson) {}

TEST_F(BaseRequestsTest, ParseInvalidJson) {}

TEST_F(BaseRequestsTest, UrlFetchRequestBaseResponseCodeOverride) {}

TEST(BaseRequestsHttpRequestMethodEnumTest, ConvertsToString) {}

}  // namespace google_apis