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