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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp

Issue 2733283004: Expose WebServiceWorkerNetworkProvider on DataSource (Closed)
Patch Set: consistency Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
index e7aa6ec20b5a6cb7f3720de73238d4933b2e810d..6f5937bc0672b26507ba95aded1cd90b8bc0d8bf 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
@@ -28,8 +28,8 @@ class MockServiceWorkerContextClient : public WebServiceWorkerContextClient {
MOCK_METHOD0(workerReadyForInspection, void());
MOCK_METHOD0(workerContextFailedToStart, void());
MOCK_METHOD0(workerScriptLoaded, void());
- MOCK_METHOD1(createServiceWorkerNetworkProvider,
- WebServiceWorkerNetworkProvider*(WebDataSource*));
+ MOCK_METHOD0(createServiceWorkerNetworkProvider,
+ WebServiceWorkerNetworkProvider*());
MOCK_METHOD0(createServiceWorkerProvider, WebServiceWorkerProvider*());
bool hasAssociatedRegistration() override {
return m_hasAssociatedRegistration;
@@ -143,7 +143,7 @@ TEST_F(WebEmbeddedWorkerImplTest, TerminateWhileLoadingScript) {
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
// Load the shadow page.
- EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider(::testing::_))
+ EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider())
.WillOnce(::testing::Return(nullptr));
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
@@ -162,7 +162,7 @@ TEST_F(WebEmbeddedWorkerImplTest, TerminateWhilePausedAfterDownload) {
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
// Load the shadow page.
- EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider(::testing::_))
+ EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider())
.WillOnce(::testing::Return(nullptr));
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
@@ -198,7 +198,7 @@ TEST_F(WebEmbeddedWorkerImplTest, ScriptNotFound) {
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
// Load the shadow page.
- EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider(::testing::_))
+ EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider())
.WillOnce(::testing::Return(nullptr));
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
@@ -219,7 +219,7 @@ TEST_F(WebEmbeddedWorkerImplTest, NoRegistration) {
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
// Load the shadow page.
- EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider(::testing::_))
+ EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider())
.WillOnce(::testing::Return(nullptr));
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
@@ -246,7 +246,7 @@ TEST_F(WebEmbeddedWorkerImplTest, MAYBE_DontPauseAfterDownload) {
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
// Load the shadow page.
- EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider(::testing::_))
+ EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider())
.WillOnce(::testing::Return(nullptr));
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
@@ -274,7 +274,7 @@ TEST_F(WebEmbeddedWorkerImplTest, MAYBE_PauseAfterDownload) {
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
// Load the shadow page.
- EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider(::testing::_))
+ EXPECT_CALL(*m_mockClient, createServiceWorkerNetworkProvider())
.WillOnce(::testing::Return(nullptr));
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
::testing::Mock::VerifyAndClearExpectations(m_mockClient);
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698