// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_TESTING_FETCH_TESTING_PLATFORM_SUPPORT_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_TESTING_FETCH_TESTING_PLATFORM_SUPPORT_H_ #include #include "third_party/blink/renderer/platform/heap/persistent.h" #include "third_party/blink/renderer/platform/testing/testing_platform_support_with_mock_scheduler.h" namespace blink { class MockFetchContext; class FetchTestingPlatformSupport : public TestingPlatformSupportWithMockScheduler { public: FetchTestingPlatformSupport(); ~FetchTestingPlatformSupport() override; MockFetchContext* Context(); // Platform: WebURLLoaderMockFactory* GetURLLoaderMockFactory() override; std::unique_ptr CreateDefaultURLLoaderFactory() override; private: class FetchTestingWebURLLoaderMockFactory; Persistent context_; std::unique_ptr url_loader_mock_factory_; DISALLOW_COPY_AND_ASSIGN(FetchTestingPlatformSupport); }; } // namespace blink #endif