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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |