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

Side by Side Diff: Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h

Issue 293403002: Introduce mock test system for navigator content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
(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 NavigatorContentUtilsClientMock_h
6 #define NavigatorContentUtilsClientMock_h
7
8 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
9 #include "platform/weborigin/KURL.h"
10 #include "wtf/HashSet.h"
11 #include "wtf/OwnPtr.h"
12 #include "wtf/text/WTFString.h"
13
14 namespace WebCore {
15
16 // Provides a mock object for the navigatorcontentutils client.
17 class NavigatorContentUtilsClientMock : public NavigatorContentUtilsClient {
18 public:
19 NavigatorContentUtilsClientMock() { }
20 virtual ~NavigatorContentUtilsClientMock() { }
21
22 virtual void registerProtocolHandler(const String& scheme, const KURL& baseU RL, const KURL&, const String& title);
23
24 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme , const KURL& baseURL, const KURL&);
25 virtual void unregisterProtocolHandler(const String& scheme, const KURL& bas eURL, const KURL&);
26
27 private:
28 typedef struct {
29 String scheme;
30 WebCore::KURL baseURL;
31 WebCore::KURL url;
32 String title;
33 } ProtocolInfo;
34
35 typedef HashMap<String, ProtocolInfo> RegisteredProtocolMap;
36 RegisteredProtocolMap m_protocolMap;
37 };
38
39 }
40
41 #endif // NavigatorContentUtilsClientMock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698