OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/test/test_blink_web_unit_test_support.h" | 5 #include "content/test/test_blink_web_unit_test_support.h" |
6 | 6 |
7 #include "base/feature_list.h" | 7 #include "base/feature_list.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 blink::WebIDBFactory* TestBlinkWebUnitTestSupport::idbFactory() { | 190 blink::WebIDBFactory* TestBlinkWebUnitTestSupport::idbFactory() { |
191 NOTREACHED() << | 191 NOTREACHED() << |
192 "IndexedDB cannot be tested with in-process harnesses."; | 192 "IndexedDB cannot be tested with in-process harnesses."; |
193 return NULL; | 193 return NULL; |
194 } | 194 } |
195 | 195 |
196 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() { | 196 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() { |
197 // This loader should be used only for process-local resources such as | 197 // This loader should be used only for process-local resources such as |
198 // data URLs. | 198 // data URLs. |
199 blink::WebURLLoader* default_loader = | 199 blink::WebURLLoader* default_loader = new WebURLLoaderImpl(nullptr, nullptr); |
200 new WebURLLoaderImpl(nullptr, nullptr, nullptr); | |
201 return url_loader_factory_->createURLLoader(default_loader); | 200 return url_loader_factory_->createURLLoader(default_loader); |
202 } | 201 } |
203 | 202 |
204 blink::WebString TestBlinkWebUnitTestSupport::userAgent() { | 203 blink::WebString TestBlinkWebUnitTestSupport::userAgent() { |
205 return blink::WebString::fromUTF8("test_runner/0.0.0.0"); | 204 return blink::WebString::fromUTF8("test_runner/0.0.0.0"); |
206 } | 205 } |
207 | 206 |
208 std::unique_ptr<cc::SharedBitmap> | 207 std::unique_ptr<cc::SharedBitmap> |
209 TestBlinkWebUnitTestSupport::allocateSharedBitmap( | 208 TestBlinkWebUnitTestSupport::allocateSharedBitmap( |
210 const blink::WebSize& size) { | 209 const blink::WebSize& size) { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 blink::WebRTCCertificateGenerator* | 348 blink::WebRTCCertificateGenerator* |
350 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() { | 349 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() { |
351 #if BUILDFLAG(ENABLE_WEBRTC) | 350 #if BUILDFLAG(ENABLE_WEBRTC) |
352 return new TestWebRTCCertificateGenerator(); | 351 return new TestWebRTCCertificateGenerator(); |
353 #else | 352 #else |
354 return nullptr; | 353 return nullptr; |
355 #endif | 354 #endif |
356 } | 355 } |
357 | 356 |
358 } // namespace content | 357 } // namespace content |
OLD | NEW |