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

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 NOTREACHED(); 100 NOTREACHED();
101 return 0.0; 101 return 0.0;
102 } 102 }
103 103
104 double monotonicallyIncreasingVirtualTimeSeconds() const override 104 double monotonicallyIncreasingVirtualTimeSeconds() const override
105 { 105 {
106 NOTREACHED(); 106 NOTREACHED();
107 return 0.0; 107 return 0.0;
108 } 108 }
109 109
110 base::SingleThreadTaskRunner* taskRunner() override
111 {
112 NOTREACHED();
113 return nullptr;
114 }
115
110 private: 116 private:
111 Deque<std::unique_ptr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED 117 Deque<std::unique_ptr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED
112 }; 118 };
113 119
114 // TestingPlatformMockScheduler definition: 120 // TestingPlatformMockScheduler definition:
115 121
116 TestingPlatformMockScheduler::TestingPlatformMockScheduler() 122 TestingPlatformMockScheduler::TestingPlatformMockScheduler()
117 : m_mockWebTaskRunner(wrapUnique(new TestingPlatformMockWebTaskRunner(&m_tas ks))) { } 123 : m_mockWebTaskRunner(wrapUnique(new TestingPlatformMockWebTaskRunner(&m_tas ks))) { }
118 124
119 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { } 125 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 { 193 {
188 return m_mockWebThread.get(); 194 return m_mockWebThread.get();
189 } 195 }
190 196
191 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc heduler() 197 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc heduler()
192 { 198 {
193 return m_mockWebThread->mockWebScheduler(); 199 return m_mockWebThread->mockWebScheduler();
194 } 200 }
195 201
196 } // namespace blink 202 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698