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

Side by Side Diff: Source/modules/serviceworkers/MockWebServiceWorkerProvider.h

Issue 400903002: Check that Service Workers are registered from secure origins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Do not open testing namespace for Windows build. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/ServiceWorkerContainer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MockWebServiceWorkerProvider_h
6 #define MockWebServiceWorkerProvider_h
7
8 #include "public/platform/WebServiceWorkerProvider.h"
9 #include <gmock/gmock.h>
Michael van Ouwerkerk 2014/07/18 09:37:57 Drive-by nit: it seems quite uncommon to use gmock
10
11 namespace testing {
12
13 class MockWebServiceWorkerProvider : public blink::WebServiceWorkerProvider {
14 public:
15 MOCK_METHOD1(setClient, void(blink::WebServiceWorkerProviderClient*));
16 MOCK_METHOD3(registerServiceWorker, void(const blink::WebURL&, const blink:: WebURL&, WebServiceWorkerCallbacks*));
17 MOCK_METHOD2(unregisterServiceWorker, void(const blink::WebURL&, WebServiceW orkerCallbacks*));
18 };
19
20 } // namespace testing
21
22 #endif // MockWebServiceWorkerProvider_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/ServiceWorkerContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698