Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: content/test/test_blink_web_unit_test_support.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: fixed build error and commments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return false; 71 return false;
72 } 72 }
73 73
74 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 74 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
75 base::OnceClosure task, 75 base::OnceClosure task,
76 base::TimeDelta delay) override { 76 base::TimeDelta delay) override {
77 // Drop the delayed task. 77 // Drop the delayed task.
78 return false; 78 return false;
79 } 79 }
80 80
81 bool RunsTasksOnCurrentThread() const override { 81 bool RunsTasksInCurrentSequence() const override {
82 return thread_id_ == base::PlatformThread::CurrentId(); 82 return thread_id_ == base::PlatformThread::CurrentId();
83 } 83 }
84 84
85 protected: 85 protected:
86 ~DummyTaskRunner() override {} 86 ~DummyTaskRunner() override {}
87 87
88 base::PlatformThreadId thread_id_; 88 base::PlatformThreadId thread_id_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(DummyTaskRunner); 90 DISALLOW_COPY_AND_ASSIGN(DummyTaskRunner);
91 }; 91 };
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 blink::WebRTCCertificateGenerator* 332 blink::WebRTCCertificateGenerator*
333 TestBlinkWebUnitTestSupport::CreateRTCCertificateGenerator() { 333 TestBlinkWebUnitTestSupport::CreateRTCCertificateGenerator() {
334 #if BUILDFLAG(ENABLE_WEBRTC) 334 #if BUILDFLAG(ENABLE_WEBRTC)
335 return new TestWebRTCCertificateGenerator(); 335 return new 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698