OLD | NEW |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ASSERT_NOT_REACHED(); | 130 ASSERT_NOT_REACHED(); |
131 return nullptr; | 131 return nullptr; |
132 } | 132 } |
133 | 133 |
| 134 double virtualTimeSeconds() const override |
| 135 { |
| 136 return 0.0; |
| 137 } |
| 138 |
| 139 double monotonicallyIncreasingVirtualTimeSeconds() const override |
| 140 { |
| 141 return 0.0; |
| 142 } |
| 143 |
134 private: | 144 private: |
135 Deque<OwnPtr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED | 145 Deque<OwnPtr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED |
136 }; | 146 }; |
137 | 147 |
138 // TestingPlatformMockScheduler definition: | 148 // TestingPlatformMockScheduler definition: |
139 | 149 |
140 TestingPlatformMockScheduler::TestingPlatformMockScheduler() | 150 TestingPlatformMockScheduler::TestingPlatformMockScheduler() |
141 : m_mockWebTaskRunner(adoptPtr(new TestingPlatformMockWebTaskRunner(&m_tasks
))) { } | 151 : m_mockWebTaskRunner(adoptPtr(new TestingPlatformMockWebTaskRunner(&m_tasks
))) { } |
142 | 152 |
143 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { } | 153 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 { | 221 { |
212 return m_mockWebThread.get(); | 222 return m_mockWebThread.get(); |
213 } | 223 } |
214 | 224 |
215 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc
heduler() | 225 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc
heduler() |
216 { | 226 { |
217 return m_mockWebThread->mockWebScheduler(); | 227 return m_mockWebThread->mockWebScheduler(); |
218 } | 228 } |
219 | 229 |
220 } // namespace blink | 230 } // namespace blink |
OLD | NEW |