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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 years, 10 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 "public/platform/Platform.h" 10 #include "public/platform/Platform.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void getClients(const WebServiceWorkerClientQueryOptions&, 44 void getClients(const WebServiceWorkerClientQueryOptions&,
45 std::unique_ptr<WebServiceWorkerClientsCallbacks>) override { 45 std::unique_ptr<WebServiceWorkerClientsCallbacks>) override {
46 NOTREACHED(); 46 NOTREACHED();
47 } 47 }
48 void openWindow(const WebURL&, 48 void openWindow(const WebURL&,
49 std::unique_ptr<WebServiceWorkerClientCallbacks>) override { 49 std::unique_ptr<WebServiceWorkerClientCallbacks>) override {
50 NOTREACHED(); 50 NOTREACHED();
51 } 51 }
52 void postMessageToClient(const WebString& uuid, 52 void postMessageToClient(const WebString& uuid,
53 const WebString&, 53 const WebString&,
54 WebMessagePortChannelArray*) override { 54 WebMessagePortChannelArray) override {
55 NOTREACHED(); 55 NOTREACHED();
56 } 56 }
57 void skipWaiting( 57 void skipWaiting(
58 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override { 58 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) override {
59 NOTREACHED(); 59 NOTREACHED();
60 } 60 }
61 void claim(std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) override { 61 void claim(std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) override {
62 NOTREACHED(); 62 NOTREACHED();
63 } 63 }
64 void focus(const WebString& uuid, 64 void focus(const WebString& uuid,
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDOMMessageEvent.cpp ('k') | third_party/WebKit/public/platform/WebMessagePortChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698