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

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

Issue 1727103002: Revert of Per WebViewScheduler virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) overrid e 123 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) overrid e
124 { 124 {
125 ASSERT_NOT_REACHED(); 125 ASSERT_NOT_REACHED();
126 } 126 }
127 127
128 WebTaskRunner* clone() override 128 WebTaskRunner* clone() override
129 { 129 {
130 return new TestingPlatformMockWebTaskRunner(m_tasks); 130 return new TestingPlatformMockWebTaskRunner(m_tasks);
131 } 131 }
132 132
133 double virtualTimeSeconds() const override
134 {
135 ASSERT_NOT_REACHED();
136 return 0.0;
137 }
138
139 double monotonicallyIncreasingVirtualTimeSeconds() const override
140 {
141 ASSERT_NOT_REACHED();
142 return 0.0;
143 }
144
145 private: 133 private:
146 Deque<OwnPtr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED 134 Deque<OwnPtr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED
147 }; 135 };
148 136
149 // TestingPlatformMockScheduler definition: 137 // TestingPlatformMockScheduler definition:
150 138
151 TestingPlatformMockScheduler::TestingPlatformMockScheduler() 139 TestingPlatformMockScheduler::TestingPlatformMockScheduler()
152 : m_mockWebTaskRunner(adoptPtr(new TestingPlatformMockWebTaskRunner(&m_tasks ))) { } 140 : m_mockWebTaskRunner(adoptPtr(new TestingPlatformMockWebTaskRunner(&m_tasks ))) { }
153 141
154 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { } 142 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 { 210 {
223 return m_mockWebThread.get(); 211 return m_mockWebThread.get();
224 } 212 }
225 213
226 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc heduler() 214 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc heduler()
227 { 215 {
228 return m_mockWebThread->mockWebScheduler(); 216 return m_mockWebThread->mockWebScheduler();
229 } 217 }
230 218
231 } // namespace blink 219 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698