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 {} |
121 | 123 |
122 protected: | 124 protected: |
123 const Config m_config; | 125 const Config m_config; |
124 Platform* const m_oldPlatform; | 126 Platform* const m_oldPlatform; |
125 }; | 127 }; |
126 | 128 |
127 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { | 129 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { |
128 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); | 130 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); |
129 public: | 131 public: |
130 TestingPlatformSupportWithMockScheduler(); | 132 TestingPlatformSupportWithMockScheduler(); |
131 explicit TestingPlatformSupportWithMockScheduler(const Config&); | 133 explicit TestingPlatformSupportWithMockScheduler(const Config&); |
132 ~TestingPlatformSupportWithMockScheduler() override; | 134 ~TestingPlatformSupportWithMockScheduler() override; |
133 | 135 |
134 // Platform: | 136 // Platform: |
135 WebThread* currentThread() override; | 137 WebThread* currentThread() override; |
136 TestingPlatformMockScheduler* mockWebScheduler(); | 138 TestingPlatformMockScheduler* mockWebScheduler(); |
137 | 139 |
138 protected: | 140 protected: |
139 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; | 141 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; |
140 }; | 142 }; |
141 | 143 |
142 } // namespace blink | 144 } // namespace blink |
143 | 145 |
144 #endif // TestingPlatformSupport_h | 146 #endif // TestingPlatformSupport_h |
OLD | NEW |