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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 ASSERT_NOT_REACHED(); | 94 ASSERT_NOT_REACHED(); |
95 return 0.0; | 95 return 0.0; |
96 } | 96 } |
97 | 97 |
98 double monotonicallyIncreasingVirtualTimeSeconds() const override | 98 double monotonicallyIncreasingVirtualTimeSeconds() const override |
99 { | 99 { |
100 ASSERT_NOT_REACHED(); | 100 ASSERT_NOT_REACHED(); |
101 return 0.0; | 101 return 0.0; |
102 } | 102 } |
103 | 103 |
| 104 scoped_refptr<base::SingleThreadTaskRunner> taskRunner() override |
| 105 { |
| 106 ASSERT_NOT_REACHED(); |
| 107 return nullptr; |
| 108 } |
| 109 |
104 private: | 110 private: |
105 Deque<std::unique_ptr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED | 111 Deque<std::unique_ptr<WebTaskRunner::Task>>* m_tasks; // NOT OWNED |
106 }; | 112 }; |
107 | 113 |
108 // TestingPlatformMockScheduler definition: | 114 // TestingPlatformMockScheduler definition: |
109 | 115 |
110 TestingPlatformMockScheduler::TestingPlatformMockScheduler() | 116 TestingPlatformMockScheduler::TestingPlatformMockScheduler() |
111 : m_mockWebTaskRunner(wrapUnique(new TestingPlatformMockWebTaskRunner(&m_tas
ks))) { } | 117 : m_mockWebTaskRunner(wrapUnique(new TestingPlatformMockWebTaskRunner(&m_tas
ks))) { } |
112 | 118 |
113 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { } | 119 TestingPlatformMockScheduler::~TestingPlatformMockScheduler() { } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 { | 187 { |
182 return m_mockWebThread.get(); | 188 return m_mockWebThread.get(); |
183 } | 189 } |
184 | 190 |
185 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc
heduler() | 191 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc
heduler() |
186 { | 192 { |
187 return m_mockWebThread->mockWebScheduler(); | 193 return m_mockWebThread->mockWebScheduler(); |
188 } | 194 } |
189 | 195 |
190 } // namespace blink | 196 } // namespace blink |
OLD | NEW |