chromium/services/network/public/cpp/cross_thread_pending_shared_url_loader_factory_unittest.cc

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

#include "services/network/public/cpp/cross_thread_pending_shared_url_loader_factory.h"

#include <string>
#include <utility>

#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace network {

namespace {

const char kUrl[] =;
const char kData[] =;

// Checks to make sure clone method is called on the right thread.
class CloneCheckingURLLoaderFactory : public TestURLLoaderFactory {};

}  // namespace

// Base class with shared setup logic.
class CrossThreadPendingSharedURLLoaderFactoryTest : public ::testing::Test {};

TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, Basic) {}

TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, FurtherClone) {}

TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, CloneThirdThread) {}

TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, CloneLoaderThread) {}

}  // namespace network