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