chromium/components/cronet/native/test/test_util.cc

// Copyright 2017 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/cronet/native/test/test_util.h"

#include <memory>
#include <string>

#include "base/functional/bind.h"
#include "base/strings/stringprintf.h"
#include "base/task/sequenced_task_runner.h"
#include "components/cronet/native/generated/cronet.idl_c.h"
#include "net/base/net_errors.h"
#include "net/cert/mock_cert_verifier.h"

namespace {
// Implementation of PostTaskExecutor methods.
void TestExecutor_Execute(Cronet_ExecutorPtr self,
                          Cronet_RunnablePtr runnable) {}

// Test Cert Verifier that successfully verifies any cert from test.example.com.
class TestCertVerifier : public net::MockCertVerifier {};

}  // namespace

namespace cronet {
namespace test {

Cronet_EnginePtr CreateTestEngine(int quic_server_port) {}

Cronet_ExecutorPtr CreateTestExecutor() {}

// static
base::OnceClosure RunnableWrapper::CreateOnceClosure(
    Cronet_RunnablePtr runnable) {}

}  // namespace test
}  // namespace cronet