#include "third_party/blink/renderer/core/testing/sim/sim_network.h"
#include <memory>
#include <utility>
#include "third_party/blink/public/platform/web_url_error.h"
#include "third_party/blink/public/platform/web_url_response.h"
#include "third_party/blink/public/web/web_navigation_params.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/platform/loader/fetch/url_loader/url_loader.h"
#include "third_party/blink/renderer/platform/loader/fetch/url_loader/url_loader_client.h"
#include "third_party/blink/renderer/platform/loader/static_data_navigation_body_loader.h"
#include "third_party/blink/renderer/platform/testing/url_loader_mock_factory.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
namespace blink {
static SimNetwork* g_network = …;
SimNetwork::SimNetwork() : … { … }
SimNetwork::~SimNetwork() { … }
SimNetwork& SimNetwork::Current() { … }
void SimNetwork::ServePendingRequests() { … }
void SimNetwork::DidReceiveResponse(URLLoaderClient* client,
const WebURLResponse& response) { … }
void SimNetwork::DidReceiveData(URLLoaderClient* client,
base::span<const char> data) { … }
void SimNetwork::DidFail(URLLoaderClient* client,
const WebURLError& error,
int64_t total_encoded_data_length,
int64_t total_encoded_body_length,
int64_t total_decoded_body_length) { … }
void SimNetwork::DidFinishLoading(URLLoaderClient* client,
base::TimeTicks finish_time,
int64_t total_encoded_data_length,
int64_t total_encoded_body_length,
int64_t total_decoded_body_length) { … }
void SimNetwork::AddRequest(SimRequestBase& request) { … }
void SimNetwork::RemoveRequest(SimRequestBase& request) { … }
bool SimNetwork::FillNavigationParamsResponse(WebNavigationParams* params) { … }
}