| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "public/web/WebEmbeddedWorker.h" | 5 #include "public/web/WebEmbeddedWorker.h" |
| 6 | 6 |
| 7 #include "platform/testing/URLTestHelpers.h" | 7 #include "platform/testing/URLTestHelpers.h" |
| 8 #include "platform/testing/UnitTestHelpers.h" | 8 #include "platform/testing/UnitTestHelpers.h" |
| 9 #include "public/platform/Platform.h" | 9 #include "public/platform/Platform.h" |
| 10 #include "public/platform/WebURLLoaderMockFactory.h" | 10 #include "public/platform/WebURLLoaderMockFactory.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void getClients(const WebServiceWorkerClientQueryOptions&, | 45 void getClients(const WebServiceWorkerClientQueryOptions&, |
| 46 std::unique_ptr<WebServiceWorkerClientsCallbacks>) override { | 46 std::unique_ptr<WebServiceWorkerClientsCallbacks>) override { |
| 47 NOTREACHED(); | 47 NOTREACHED(); |
| 48 } | 48 } |
| 49 void openWindow(const WebURL&, | 49 void openWindow(const WebURL&, |
| 50 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { | 50 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { |
| 51 NOTREACHED(); | 51 NOTREACHED(); |
| 52 } | 52 } |
| 53 void postMessageToClient(const WebString& uuid, | 53 void postMessageToClient(const WebString& uuid, |
| 54 const WebString&, | 54 const WebString&, |
| 55 WebMessagePortChannelArray*) override { | 55 WebMessagePortChannelArray) override { |
| 56 NOTREACHED(); | 56 NOTREACHED(); |
| 57 } | 57 } |
| 58 void skipWaiting( | 58 void skipWaiting( |
| 59 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override { | 59 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override { |
| 60 NOTREACHED(); | 60 NOTREACHED(); |
| 61 } | 61 } |
| 62 void claim(std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) override { | 62 void claim(std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) override { |
| 63 NOTREACHED(); | 63 NOTREACHED(); |
| 64 } | 64 } |
| 65 void focus(const WebString& uuid, | 65 void focus(const WebString& uuid, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 ::testing::Mock::VerifyAndClearExpectations(m_mockClient); | 286 ::testing::Mock::VerifyAndClearExpectations(m_mockClient); |
| 287 | 287 |
| 288 // Resume after download. | 288 // Resume after download. |
| 289 EXPECT_CALL(*m_mockClient, createServiceWorkerProvider()) | 289 EXPECT_CALL(*m_mockClient, createServiceWorkerProvider()) |
| 290 .WillOnce(::testing::Return(nullptr)); | 290 .WillOnce(::testing::Return(nullptr)); |
| 291 m_worker->resumeAfterDownload(); | 291 m_worker->resumeAfterDownload(); |
| 292 ::testing::Mock::VerifyAndClearExpectations(m_mockClient); | 292 ::testing::Mock::VerifyAndClearExpectations(m_mockClient); |
| 293 } | 293 } |
| 294 | 294 |
| 295 } // namespace blink | 295 } // namespace blink |
| OLD | NEW |