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/callback.h" | 7 #include "base/callback.h" |
8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 return false; | 70 return false; |
71 } | 71 } |
72 | 72 |
73 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, | 73 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
74 base::OnceClosure task, | 74 base::OnceClosure task, |
75 base::TimeDelta delay) override { | 75 base::TimeDelta delay) override { |
76 // Drop the delayed task. | 76 // Drop the delayed task. |
77 return false; | 77 return false; |
78 } | 78 } |
79 | 79 |
80 bool RunsTasksOnCurrentThread() const override { | 80 bool RunsTasksInCurrentSequence() const override { |
81 return thread_id_ == base::PlatformThread::CurrentId(); | 81 return thread_id_ == base::PlatformThread::CurrentId(); |
82 } | 82 } |
83 | 83 |
84 protected: | 84 protected: |
85 ~DummyTaskRunner() override {} | 85 ~DummyTaskRunner() override {} |
86 | 86 |
87 base::PlatformThreadId thread_id_; | 87 base::PlatformThreadId thread_id_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(DummyTaskRunner); | 89 DISALLOW_COPY_AND_ASSIGN(DummyTaskRunner); |
90 }; | 90 }; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 std::unique_ptr<blink::WebRTCCertificateGenerator> | 332 std::unique_ptr<blink::WebRTCCertificateGenerator> |
333 TestBlinkWebUnitTestSupport::CreateRTCCertificateGenerator() { | 333 TestBlinkWebUnitTestSupport::CreateRTCCertificateGenerator() { |
334 #if BUILDFLAG(ENABLE_WEBRTC) | 334 #if BUILDFLAG(ENABLE_WEBRTC) |
335 return base::MakeUnique<TestWebRTCCertificateGenerator>(); | 335 return base::MakeUnique<TestWebRTCCertificateGenerator>(); |
336 #else | 336 #else |
337 return nullptr; | 337 return nullptr; |
338 #endif | 338 #endif |
339 } | 339 } |
340 | 340 |
341 } // namespace content | 341 } // namespace content |
OLD | NEW |