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