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 "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 |