OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform/loader/testing/FetchTestingPlatformSupport.h" | 5 #include "platform/loader/testing/FetchTestingPlatformSupport.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include "platform/loader/fetch/ResourceError.h" | 8 #include "platform/loader/fetch/ResourceError.h" |
9 #include "platform/loader/testing/MockFetchContext.h" | 9 #include "platform/loader/testing/MockFetchContext.h" |
10 #include "platform/testing/weburl_loader_mock_factory_impl.h" | 10 #include "platform/testing/weburl_loader_mock_factory_impl.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const WebURL& url) const { | 38 const WebURL& url) const { |
39 return ResourceError(kErrorDomainBlinkInternal, -1, url.GetString(), | 39 return ResourceError(kErrorDomainBlinkInternal, -1, url.GetString(), |
40 "cancelledError for testing"); | 40 "cancelledError for testing"); |
41 } | 41 } |
42 | 42 |
43 WebURLLoaderMockFactory* | 43 WebURLLoaderMockFactory* |
44 FetchTestingPlatformSupport::GetURLLoaderMockFactory() { | 44 FetchTestingPlatformSupport::GetURLLoaderMockFactory() { |
45 return url_loader_mock_factory_.get(); | 45 return url_loader_mock_factory_.get(); |
46 } | 46 } |
47 | 47 |
48 WebURLLoader* FetchTestingPlatformSupport::CreateURLLoader() { | 48 std::unique_ptr<WebURLLoader> FetchTestingPlatformSupport::CreateURLLoader() { |
49 return url_loader_mock_factory_->CreateURLLoader(nullptr); | 49 return url_loader_mock_factory_->CreateURLLoader(nullptr); |
50 } | 50 } |
51 | 51 |
52 } // namespace blink | 52 } // namespace blink |
OLD | NEW |