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

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

Issue 2931953002: [Payments] Rename openWindowForClients and openWindowForPaymentHandler (Closed)
Patch Set: address nit 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 OpenWindowForClients( 62 void OpenNewTab(const WebURL&,
63 const WebURL&, 63 std::unique_ptr<WebServiceWorkerClientCallbacks>) override {
64 std::unique_ptr<WebServiceWorkerClientCallbacks>) override {
65 NOTREACHED(); 64 NOTREACHED();
66 } 65 }
67 void OpenWindowForPaymentHandler( 66 void OpenNewPopup(const WebURL&,
68 const WebURL&, 67 std::unique_ptr<WebServiceWorkerClientCallbacks>) override {
69 std::unique_ptr<WebServiceWorkerClientCallbacks>) override {
70 NOTREACHED(); 68 NOTREACHED();
71 } 69 }
72 void PostMessageToClient(const WebString& uuid, 70 void PostMessageToClient(const WebString& uuid,
73 const WebString&, 71 const WebString&,
74 WebMessagePortChannelArray) override { 72 WebMessagePortChannelArray) override {
75 NOTREACHED(); 73 NOTREACHED();
76 } 74 }
77 void SkipWaiting( 75 void SkipWaiting(
78 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override { 76 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override {
79 NOTREACHED(); 77 NOTREACHED();
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 ::testing::Mock::VerifyAndClearExpectations(mock_client_); 305 ::testing::Mock::VerifyAndClearExpectations(mock_client_);
308 306
309 // Resume after download. 307 // Resume after download.
310 EXPECT_CALL(*mock_client_, CreateServiceWorkerProviderProxy()) 308 EXPECT_CALL(*mock_client_, CreateServiceWorkerProviderProxy())
311 .WillOnce(::testing::Return(nullptr)); 309 .WillOnce(::testing::Return(nullptr));
312 worker_->ResumeAfterDownload(); 310 worker_->ResumeAfterDownload();
313 ::testing::Mock::VerifyAndClearExpectations(mock_client_); 311 ::testing::Mock::VerifyAndClearExpectations(mock_client_);
314 } 312 }
315 313
316 } // namespace blink 314 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698