| 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 <memory> | 7 #include <memory> |
| 8 #include "platform/testing/URLTestHelpers.h" | 8 #include "platform/testing/URLTestHelpers.h" |
| 9 #include "platform/testing/UnitTestHelpers.h" | 9 #include "platform/testing/UnitTestHelpers.h" |
| 10 #include "platform/wtf/PtrUtil.h" | 10 #include "platform/wtf/PtrUtil.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 has_associated_registration_ = has_associated_registration; | 52 has_associated_registration_ = has_associated_registration; |
| 53 } | 53 } |
| 54 void GetClient(const WebString&, | 54 void GetClient(const WebString&, |
| 55 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { | 55 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { |
| 56 NOTREACHED(); | 56 NOTREACHED(); |
| 57 } | 57 } |
| 58 void GetClients(const WebServiceWorkerClientQueryOptions&, | 58 void GetClients(const WebServiceWorkerClientQueryOptions&, |
| 59 std::unique_ptr<WebServiceWorkerClientsCallbacks>) override { | 59 std::unique_ptr<WebServiceWorkerClientsCallbacks>) override { |
| 60 NOTREACHED(); | 60 NOTREACHED(); |
| 61 } | 61 } |
| 62 void OpenWindow(const WebURL&, | 62 void OpenWindowForClients( |
| 63 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { | 63 const WebURL&, |
| 64 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { |
| 65 NOTREACHED(); |
| 66 } |
| 67 void OpenWindowForPaymentHandler( |
| 68 const WebURL&, |
| 69 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { |
| 64 NOTREACHED(); | 70 NOTREACHED(); |
| 65 } | 71 } |
| 66 void PostMessageToClient(const WebString& uuid, | 72 void PostMessageToClient(const WebString& uuid, |
| 67 const WebString&, | 73 const WebString&, |
| 68 WebMessagePortChannelArray) override { | 74 WebMessagePortChannelArray) override { |
| 69 NOTREACHED(); | 75 NOTREACHED(); |
| 70 } | 76 } |
| 71 void SkipWaiting( | 77 void SkipWaiting( |
| 72 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override { | 78 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override { |
| 73 NOTREACHED(); | 79 NOTREACHED(); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 ::testing::Mock::VerifyAndClearExpectations(mock_client_); | 307 ::testing::Mock::VerifyAndClearExpectations(mock_client_); |
| 302 | 308 |
| 303 // Resume after download. | 309 // Resume after download. |
| 304 EXPECT_CALL(*mock_client_, CreateServiceWorkerProviderProxy()) | 310 EXPECT_CALL(*mock_client_, CreateServiceWorkerProviderProxy()) |
| 305 .WillOnce(::testing::Return(nullptr)); | 311 .WillOnce(::testing::Return(nullptr)); |
| 306 worker_->ResumeAfterDownload(); | 312 worker_->ResumeAfterDownload(); |
| 307 ::testing::Mock::VerifyAndClearExpectations(mock_client_); | 313 ::testing::Mock::VerifyAndClearExpectations(mock_client_); |
| 308 } | 314 } |
| 309 | 315 |
| 310 } // namespace blink | 316 } // namespace blink |
| OLD | NEW |