| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "base/mac/scoped_nsautorelease_pool.h" | 45 #include "base/mac/scoped_nsautorelease_pool.h" |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 48 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 49 #include "gin/v8_initializer.h" // nogncheck | 49 #include "gin/v8_initializer.h" // nogncheck |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 #if BUILDFLAG(ENABLE_WEBRTC) | 52 #if BUILDFLAG(ENABLE_WEBRTC) |
| 53 #include "content/renderer/media/rtc_certificate.h" | 53 #include "content/renderer/media/rtc_certificate.h" |
| 54 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h" | 54 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h" |
| 55 #include "third_party/webrtc/base/rtccertificate.h" | 55 #include "third_party/webrtc/base/rtccertificate.h" // nogncheck |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 namespace { | 58 namespace { |
| 59 | 59 |
| 60 class DummyTaskRunner : public base::SingleThreadTaskRunner { | 60 class DummyTaskRunner : public base::SingleThreadTaskRunner { |
| 61 public: | 61 public: |
| 62 DummyTaskRunner() : thread_id_(base::PlatformThread::CurrentId()) {} | 62 DummyTaskRunner() : thread_id_(base::PlatformThread::CurrentId()) {} |
| 63 | 63 |
| 64 bool PostDelayedTask(const tracked_objects::Location& from_here, | 64 bool PostDelayedTask(const tracked_objects::Location& from_here, |
| 65 const base::Closure& task, | 65 const base::Closure& task, |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 blink::WebRTCCertificateGenerator* | 347 blink::WebRTCCertificateGenerator* |
| 348 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() { | 348 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() { |
| 349 #if BUILDFLAG(ENABLE_WEBRTC) | 349 #if BUILDFLAG(ENABLE_WEBRTC) |
| 350 return new TestWebRTCCertificateGenerator(); | 350 return new TestWebRTCCertificateGenerator(); |
| 351 #else | 351 #else |
| 352 return nullptr; | 352 return nullptr; |
| 353 #endif | 353 #endif |
| 354 } | 354 } |
| 355 | 355 |
| 356 } // namespace content | 356 } // namespace content |
| OLD | NEW |