chromium/components/sync/test/fake_server_http_post_provider.cc

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

#include "components/sync/test/fake_server_http_post_provider.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "components/sync/test/fake_server.h"
#include "net/base/net_errors.h"

namespace fake_server {

// static
std::atomic_bool FakeServerHttpPostProvider::network_enabled_(true);

FakeServerHttpPostProviderFactory::FakeServerHttpPostProviderFactory(
    const base::WeakPtr<FakeServer>& fake_server,
    scoped_refptr<base::SequencedTaskRunner> fake_server_task_runner)
    :{}

FakeServerHttpPostProviderFactory::~FakeServerHttpPostProviderFactory() =
    default;

scoped_refptr<syncer::HttpPostProvider>
FakeServerHttpPostProviderFactory::Create() {}

FakeServerHttpPostProvider::FakeServerHttpPostProvider(
    const base::WeakPtr<FakeServer>& fake_server,
    scoped_refptr<base::SequencedTaskRunner> fake_server_task_runner)
    :{}

FakeServerHttpPostProvider::~FakeServerHttpPostProvider() = default;

void FakeServerHttpPostProvider::SetExtraRequestHeaders(const char* headers) {}

void FakeServerHttpPostProvider::SetURL(const GURL& url) {}

void FakeServerHttpPostProvider::SetPostPayload(const char* content_type,
                                                int content_length,
                                                const char* content) {}

bool FakeServerHttpPostProvider::MakeSynchronousPost(int* net_error_code,
                                                     int* http_status_code) {}

int FakeServerHttpPostProvider::GetResponseContentLength() const {}

const char* FakeServerHttpPostProvider::GetResponseContent() const {}

const std::string FakeServerHttpPostProvider::GetResponseHeaderValue(
    const std::string& name) const {}

void FakeServerHttpPostProvider::Abort() {}

// static
void FakeServerHttpPostProvider::DisableNetwork() {}

// static
void FakeServerHttpPostProvider::EnableNetwork() {}

void FakeServerHttpPostProvider::HandleCommandOnFakeServerThread(
    int* http_status_code,
    std::string* response) {}

}  // namespace fake_server