| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 blink::WebIDBFactory* TestBlinkWebUnitTestSupport::idbFactory() { | 187 blink::WebIDBFactory* TestBlinkWebUnitTestSupport::idbFactory() { |
| 188 NOTREACHED() << | 188 NOTREACHED() << |
| 189 "IndexedDB cannot be tested with in-process harnesses."; | 189 "IndexedDB cannot be tested with in-process harnesses."; |
| 190 return NULL; | 190 return NULL; |
| 191 } | 191 } |
| 192 | 192 |
| 193 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() { | 193 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() { |
| 194 // This loader should be used only for process-local resources such as | 194 // This loader should be used only for process-local resources such as |
| 195 // data URLs. | 195 // data URLs. |
| 196 blink::WebURLLoader* default_loader = new WebURLLoaderImpl(nullptr, nullptr); | 196 blink::WebURLLoader* default_loader = |
| 197 new WebURLLoaderImpl(nullptr, nullptr, nullptr); |
| 197 return url_loader_factory_->createURLLoader(default_loader); | 198 return url_loader_factory_->createURLLoader(default_loader); |
| 198 } | 199 } |
| 199 | 200 |
| 200 blink::WebString TestBlinkWebUnitTestSupport::userAgent() { | 201 blink::WebString TestBlinkWebUnitTestSupport::userAgent() { |
| 201 return blink::WebString::fromUTF8("test_runner/0.0.0.0"); | 202 return blink::WebString::fromUTF8("test_runner/0.0.0.0"); |
| 202 } | 203 } |
| 203 | 204 |
| 204 std::unique_ptr<cc::SharedBitmap> | 205 std::unique_ptr<cc::SharedBitmap> |
| 205 TestBlinkWebUnitTestSupport::allocateSharedBitmap( | 206 TestBlinkWebUnitTestSupport::allocateSharedBitmap( |
| 206 const blink::WebSize& size) { | 207 const blink::WebSize& size) { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 blink::WebRTCCertificateGenerator* | 346 blink::WebRTCCertificateGenerator* |
| 346 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() { | 347 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() { |
| 347 #if defined(ENABLE_WEBRTC) | 348 #if defined(ENABLE_WEBRTC) |
| 348 return new TestWebRTCCertificateGenerator(); | 349 return new TestWebRTCCertificateGenerator(); |
| 349 #else | 350 #else |
| 350 return nullptr; | 351 return nullptr; |
| 351 #endif | 352 #endif |
| 352 } | 353 } |
| 353 | 354 |
| 354 } // namespace content | 355 } // namespace content |
| OLD | NEW |