Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" | |
| 10 #include "third_party/WebKit/public/platform/WebVector.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 class WebCredential; | |
| 14 class WebFrame; | |
| 15 class WebURL; | |
| 16 } | |
| 17 | |
| 18 namespace content { | |
| 19 | |
| 20 class MockCredentialManagerClient : public blink::WebCredentialManagerClient { | |
| 21 public: | |
| 22 MockCredentialManagerClient(); | |
| 23 virtual ~MockCredentialManagerClient(); | |
| 24 | |
| 25 void SetResponse(blink::WebCredential*); | |
|
jochen (gone - plz use gerrit)
2014/09/12 14:16:25
nit. add parameters names (chromium style)
| |
| 26 | |
| 27 // blink::WebCredentialManager: | |
| 28 virtual void dispatchFailedSignIn(const blink::WebCredential& credential, | |
|
jochen (gone - plz use gerrit)
2014/09/12 14:16:25
no override on blink API implementations
| |
| 29 NotificationCallbacks* callbacks) OVERRIDE; | |
| 30 virtual void dispatchSignedIn(const blink::WebCredential& credential, | |
| 31 NotificationCallbacks* callbacks) OVERRIDE; | |
| 32 virtual void dispatchSignedOut(NotificationCallbacks* callbacks) OVERRIDE; | |
| 33 virtual void dispatchRequest( | |
| 34 bool zero_click_only, | |
| 35 const blink::WebVector<blink::WebURL>& federations, | |
| 36 RequestCallbacks* callbacks) OVERRIDE; | |
| 37 | |
| 38 private: | |
| 39 blink::WebCredential* credential_; | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient); | |
| 42 }; | |
| 43 | |
| 44 } // namespace content | |
| 45 | |
| 46 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | |
| OLD | NEW |