| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 TestingPlatformSupport(); | 88 TestingPlatformSupport(); |
| 89 explicit TestingPlatformSupport(const Config&); | 89 explicit TestingPlatformSupport(const Config&); |
| 90 | 90 |
| 91 ~TestingPlatformSupport() override; | 91 ~TestingPlatformSupport() override; |
| 92 | 92 |
| 93 // Platform: | 93 // Platform: |
| 94 WebString defaultLocale() override; | 94 WebString defaultLocale() override; |
| 95 WebCompositorSupport* compositorSupport() override; | 95 WebCompositorSupport* compositorSupport() override; |
| 96 WebThread* currentThread() override; | 96 WebThread* currentThread() override; |
| 97 WebUnitTestSupport* unitTestSupport() override; | |
| 98 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const char* n
ame) override {} | 97 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const char* n
ame) override {} |
| 99 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {} | 98 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {} |
| 100 | 99 |
| 101 protected: | 100 protected: |
| 102 const Config m_config; | 101 const Config m_config; |
| 103 Platform* const m_oldPlatform; | 102 Platform* const m_oldPlatform; |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { | 105 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { |
| 107 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); | 106 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); |
| 108 public: | 107 public: |
| 109 TestingPlatformSupportWithMockScheduler(); | 108 TestingPlatformSupportWithMockScheduler(); |
| 110 explicit TestingPlatformSupportWithMockScheduler(const Config&); | 109 explicit TestingPlatformSupportWithMockScheduler(const Config&); |
| 111 ~TestingPlatformSupportWithMockScheduler() override; | 110 ~TestingPlatformSupportWithMockScheduler() override; |
| 112 | 111 |
| 113 // Platform: | 112 // Platform: |
| 114 WebThread* currentThread() override; | 113 WebThread* currentThread() override; |
| 115 TestingPlatformMockScheduler* mockWebScheduler(); | 114 TestingPlatformMockScheduler* mockWebScheduler(); |
| 116 | 115 |
| 117 protected: | 116 protected: |
| 118 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; | 117 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 } // namespace blink | 120 } // namespace blink |
| 122 | 121 |
| 123 #endif // TestingPlatformSupport_h | 122 #endif // TestingPlatformSupport_h |
| OLD | NEW |