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

Side by Side Diff: Source/platform/scheduler/SchedulerTest.cpp

Issue 514193002: Expose platform thread id on WebThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "platform/scheduler/Scheduler.h" 6 #include "platform/scheduler/Scheduler.h"
7 7
8 #include "platform/TestingPlatformSupport.h" 8 #include "platform/TestingPlatformSupport.h"
9 #include "platform/TraceLocation.h" 9 #include "platform/TraceLocation.h"
10 #include "public/platform/Platform.h" 10 #include "public/platform/Platform.h"
(...skipping 20 matching lines...) Expand all
31 virtual void postDelayedTask(Task* task, long long delayMs) OVERRIDE 31 virtual void postDelayedTask(Task* task, long long delayMs) OVERRIDE
32 { 32 {
33 ASSERT_NOT_REACHED(); 33 ASSERT_NOT_REACHED();
34 } 34 }
35 35
36 virtual bool isCurrentThread() const OVERRIDE 36 virtual bool isCurrentThread() const OVERRIDE
37 { 37 {
38 return true; 38 return true;
39 } 39 }
40 40
41 virtual blink::PlatformThreadId threadId() const OVERRIDE
42 {
43 ASSERT_NOT_REACHED();
44 return 0;
45 }
46
41 virtual void enterRunLoop() OVERRIDE 47 virtual void enterRunLoop() OVERRIDE
42 { 48 {
43 ASSERT_NOT_REACHED(); 49 ASSERT_NOT_REACHED();
44 } 50 }
45 51
46 virtual void exitRunLoop() OVERRIDE 52 virtual void exitRunLoop() OVERRIDE
47 { 53 {
48 ASSERT_NOT_REACHED(); 54 ASSERT_NOT_REACHED();
49 } 55 }
50 56
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 m_platformSupport.triggerSharedTimer(); 394 m_platformSupport.triggerSharedTimer();
389 395
390 EXPECT_EQ(1, s_dummyTaskCount); 396 EXPECT_EQ(1, s_dummyTaskCount);
391 397
392 // Clean up. 398 // Clean up.
393 m_scheduler->stopSharedTimer(); 399 m_scheduler->stopSharedTimer();
394 m_scheduler->setSharedTimerFiredFunction(nullptr); 400 m_scheduler->setSharedTimerFiredFunction(nullptr);
395 } 401 }
396 402
397 } // namespace 403 } // namespace
OLDNEW
« no previous file with comments | « Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp ('k') | public/platform/WebThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698