#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[] = …;
class CloneCheckingURLLoaderFactory : public TestURLLoaderFactory { … };
}
class CrossThreadPendingSharedURLLoaderFactoryTest : public ::testing::Test { … };
TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, Basic) { … }
TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, FurtherClone) { … }
TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, CloneThirdThread) { … }
TEST_F(CrossThreadPendingSharedURLLoaderFactoryTest, CloneLoaderThread) { … }
}