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

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

Issue 2675303004: Move WebCache from public/web into public/platform (Closed)
Patch Set: . 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 "platform/testing/URLTestHelpers.h" 8 #include "platform/testing/URLTestHelpers.h"
8 #include "platform/testing/UnitTestHelpers.h" 9 #include "platform/testing/UnitTestHelpers.h"
9 #include "public/platform/Platform.h" 10 #include "public/platform/Platform.h"
11 #include "public/platform/WebCache.h"
10 #include "public/platform/WebURLLoaderMockFactory.h" 12 #include "public/platform/WebURLLoaderMockFactory.h"
11 #include "public/platform/WebURLResponse.h" 13 #include "public/platform/WebURLResponse.h"
12 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" 14 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h"
13 #include "public/web/WebCache.h"
14 #include "public/web/WebEmbeddedWorkerStartData.h" 15 #include "public/web/WebEmbeddedWorkerStartData.h"
15 #include "public/web/WebSettings.h" 16 #include "public/web/WebSettings.h"
16 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h" 17 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h"
17 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 #include "wtf/PtrUtil.h" 20 #include "wtf/PtrUtil.h"
20 #include <memory>
21 21
22 namespace blink { 22 namespace blink {
23 namespace { 23 namespace {
24 24
25 class MockServiceWorkerContextClient : public WebServiceWorkerContextClient { 25 class MockServiceWorkerContextClient : public WebServiceWorkerContextClient {
26 public: 26 public:
27 MockServiceWorkerContextClient() : m_hasAssociatedRegistration(true) {} 27 MockServiceWorkerContextClient() : m_hasAssociatedRegistration(true) {}
28 ~MockServiceWorkerContextClient() override {} 28 ~MockServiceWorkerContextClient() override {}
29 MOCK_METHOD0(workerReadyForInspection, void()); 29 MOCK_METHOD0(workerReadyForInspection, void());
30 MOCK_METHOD0(workerContextFailedToStart, void()); 30 MOCK_METHOD0(workerContextFailedToStart, void());
(...skipping 255 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/WebCache.cpp ('k') | third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698