| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 ~TestingPlatformSupport() override; | 129 ~TestingPlatformSupport() override; |
| 130 | 130 |
| 131 // Platform: | 131 // Platform: |
| 132 WebString defaultLocale() override; | 132 WebString defaultLocale() override; |
| 133 WebCompositorSupport* compositorSupport() override; | 133 WebCompositorSupport* compositorSupport() override; |
| 134 WebThread* currentThread() override; | 134 WebThread* currentThread() override; |
| 135 WebBlobRegistry* getBlobRegistry() override; | 135 WebBlobRegistry* getBlobRegistry() override; |
| 136 WebClipboard* clipboard() override; | 136 WebClipboard* clipboard() override; |
| 137 WebFileUtilities* fileUtilities() override; | 137 WebFileUtilities* fileUtilities() override; |
| 138 WebIDBFactory* idbFactory() override; | 138 WebIDBFactory* idbFactory() override; |
| 139 WebMimeRegistry* mimeRegistry() override; | |
| 140 WebURLLoaderMockFactory* getURLLoaderMockFactory() override; | 139 WebURLLoaderMockFactory* getURLLoaderMockFactory() override; |
| 141 blink::WebURLLoader* createURLLoader() override; | 140 blink::WebURLLoader* createURLLoader() override; |
| 142 | |
| 143 WebData loadResource(const char* name) override; | 141 WebData loadResource(const char* name) override; |
| 144 WebURLError cancelledError(const WebURL&) const override; | 142 WebURLError cancelledError(const WebURL&) const override; |
| 143 InterfaceProvider* interfaceProvider() override; |
| 145 | 144 |
| 146 protected: | 145 protected: |
| 146 class TestingInterfaceProvider; |
| 147 |
| 147 const Config m_config; | 148 const Config m_config; |
| 148 Platform* const m_oldPlatform; | 149 Platform* const m_oldPlatform; |
| 150 std::unique_ptr<TestingInterfaceProvider> m_interfaceProvider; |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { | 153 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { |
| 152 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); | 154 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); |
| 153 | 155 |
| 154 public: | 156 public: |
| 155 TestingPlatformSupportWithMockScheduler(); | 157 TestingPlatformSupportWithMockScheduler(); |
| 156 explicit TestingPlatformSupportWithMockScheduler(const Config&); | 158 explicit TestingPlatformSupportWithMockScheduler(const Config&); |
| 157 ~TestingPlatformSupportWithMockScheduler() override; | 159 ~TestingPlatformSupportWithMockScheduler() override; |
| 158 | 160 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 m_discardableMemoryAllocator; | 209 m_discardableMemoryAllocator; |
| 208 std::unique_ptr<DummyPlatform> m_platform; | 210 std::unique_ptr<DummyPlatform> m_platform; |
| 209 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; | 211 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; |
| 210 TestingPlatformSupport::Config m_testingPlatformConfig; | 212 TestingPlatformSupport::Config m_testingPlatformConfig; |
| 211 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; | 213 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; |
| 212 }; | 214 }; |
| 213 | 215 |
| 214 } // namespace blink | 216 } // namespace blink |
| 215 | 217 |
| 216 #endif // TestingPlatformSupport_h | 218 #endif // TestingPlatformSupport_h |
| OLD | NEW |