| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 WebThread* TestingPlatformSupport::currentThread() | 63 WebThread* TestingPlatformSupport::currentThread() |
| 64 { | 64 { |
| 65 return m_oldPlatform ? m_oldPlatform->currentThread() : nullptr; | 65 return m_oldPlatform ? m_oldPlatform->currentThread() : nullptr; |
| 66 } | 66 } |
| 67 | 67 |
| 68 WebUnitTestSupport* TestingPlatformSupport::unitTestSupport() | 68 WebUnitTestSupport* TestingPlatformSupport::unitTestSupport() |
| 69 { | 69 { |
| 70 return m_oldPlatform ? m_oldPlatform->unitTestSupport() : nullptr; | 70 return m_oldPlatform ? m_oldPlatform->unitTestSupport() : nullptr; |
| 71 } | 71 } |
| 72 | 72 |
| 73 void TestingPlatformSupport::connectToRemoteService(const char* name, mojo::Scop
edMessagePipeHandle handle) | |
| 74 { | |
| 75 ASSERT_NOT_REACHED(); | |
| 76 } | |
| 77 | |
| 78 class TestingPlatformMockWebTaskRunner : public WebTaskRunner { | 73 class TestingPlatformMockWebTaskRunner : public WebTaskRunner { |
| 79 WTF_MAKE_NONCOPYABLE(TestingPlatformMockWebTaskRunner); | 74 WTF_MAKE_NONCOPYABLE(TestingPlatformMockWebTaskRunner); |
| 80 public: | 75 public: |
| 81 explicit TestingPlatformMockWebTaskRunner(Deque<OwnPtr<WebTaskRunner::Task>>
* tasks) : m_tasks(tasks) { } | 76 explicit TestingPlatformMockWebTaskRunner(Deque<OwnPtr<WebTaskRunner::Task>>
* tasks) : m_tasks(tasks) { } |
| 82 ~TestingPlatformMockWebTaskRunner() override { } | 77 ~TestingPlatformMockWebTaskRunner() override { } |
| 83 | 78 |
| 84 void postTask(const WebTraceLocation&, Task* task) override | 79 void postTask(const WebTraceLocation&, Task* task) override |
| 85 { | 80 { |
| 86 m_tasks->append(adoptPtr(task)); | 81 m_tasks->append(adoptPtr(task)); |
| 87 } | 82 } |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 { | 183 { |
| 189 return m_mockWebThread.get(); | 184 return m_mockWebThread.get(); |
| 190 } | 185 } |
| 191 | 186 |
| 192 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc
heduler() | 187 TestingPlatformMockScheduler* TestingPlatformSupportWithMockScheduler::mockWebSc
heduler() |
| 193 { | 188 { |
| 194 return m_mockWebThread->mockWebScheduler(); | 189 return m_mockWebThread->mockWebScheduler(); |
| 195 } | 190 } |
| 196 | 191 |
| 197 } // namespace blink | 192 } // namespace blink |
| OLD | NEW |