Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: rename ipc messages Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698