| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 explicit TestingPlatformSupport(const Config&); | 111 explicit TestingPlatformSupport(const Config&); |
| 112 | 112 |
| 113 ~TestingPlatformSupport() override; | 113 ~TestingPlatformSupport() override; |
| 114 | 114 |
| 115 // Platform: | 115 // Platform: |
| 116 WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) overrid
e; | 116 WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) overrid
e; |
| 117 WebString defaultLocale() override; | 117 WebString defaultLocale() override; |
| 118 WebCompositorSupport* compositorSupport() override; | 118 WebCompositorSupport* compositorSupport() override; |
| 119 WebThread* currentThread() override; | 119 WebThread* currentThread() override; |
| 120 WebUnitTestSupport* unitTestSupport() override; | 120 WebUnitTestSupport* unitTestSupport() override; |
| 121 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const char* n
ame) override {} | |
| 122 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {} | |
| 123 void connectToRemoteService(const char* name, mojo::ScopedMessagePipeHandle)
override; | 121 void connectToRemoteService(const char* name, mojo::ScopedMessagePipeHandle)
override; |
| 124 | 122 |
| 125 protected: | 123 protected: |
| 126 const Config m_config; | 124 const Config m_config; |
| 127 Platform* const m_oldPlatform; | 125 Platform* const m_oldPlatform; |
| 128 }; | 126 }; |
| 129 | 127 |
| 130 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { | 128 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { |
| 131 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); | 129 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); |
| 132 public: | 130 public: |
| 133 TestingPlatformSupportWithMockScheduler(); | 131 TestingPlatformSupportWithMockScheduler(); |
| 134 explicit TestingPlatformSupportWithMockScheduler(const Config&); | 132 explicit TestingPlatformSupportWithMockScheduler(const Config&); |
| 135 ~TestingPlatformSupportWithMockScheduler() override; | 133 ~TestingPlatformSupportWithMockScheduler() override; |
| 136 | 134 |
| 137 // Platform: | 135 // Platform: |
| 138 WebThread* currentThread() override; | 136 WebThread* currentThread() override; |
| 139 TestingPlatformMockScheduler* mockWebScheduler(); | 137 TestingPlatformMockScheduler* mockWebScheduler(); |
| 140 | 138 |
| 141 protected: | 139 protected: |
| 142 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; | 140 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; |
| 143 }; | 141 }; |
| 144 | 142 |
| 145 } // namespace blink | 143 } // namespace blink |
| 146 | 144 |
| 147 #endif // TestingPlatformSupport_h | 145 #endif // TestingPlatformSupport_h |
| OLD | NEW |