| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | 6 #define COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" | 9 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" |
| 10 #include "third_party/WebKit/public/platform/WebVector.h" | 10 #include "third_party/WebKit/public/platform/WebVector.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 virtual ~MockCredentialManagerClient(); | 23 virtual ~MockCredentialManagerClient(); |
| 24 | 24 |
| 25 // We take ownership of the |credential|. | 25 // We take ownership of the |credential|. |
| 26 void SetResponse(blink::WebCredential* credential); | 26 void SetResponse(blink::WebCredential* credential); |
| 27 | 27 |
| 28 // blink::WebCredentialManager: | 28 // blink::WebCredentialManager: |
| 29 virtual void dispatchFailedSignIn(const blink::WebCredential& credential, | 29 virtual void dispatchFailedSignIn(const blink::WebCredential& credential, |
| 30 NotificationCallbacks* callbacks); | 30 NotificationCallbacks* callbacks); |
| 31 virtual void dispatchSignedIn(const blink::WebCredential& credential, | 31 virtual void dispatchSignedIn(const blink::WebCredential& credential, |
| 32 NotificationCallbacks* callbacks); | 32 NotificationCallbacks* callbacks); |
| 33 virtual void dispatchSignedOut(NotificationCallbacks* callbacks); | 33 virtual void dispatchRequireUserMediation(NotificationCallbacks* callbacks); |
| 34 virtual void dispatchRequest( | 34 virtual void dispatchRequest( |
| 35 bool zero_click_only, | 35 bool zero_click_only, |
| 36 const blink::WebVector<blink::WebURL>& federations, | 36 const blink::WebVector<blink::WebURL>& federations, |
| 37 RequestCallbacks* callbacks); | 37 RequestCallbacks* callbacks); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 scoped_ptr<blink::WebCredential> credential_; | 40 scoped_ptr<blink::WebCredential> credential_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient); | 42 DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace test_runner | 45 } // namespace test_runner |
| 46 | 46 |
| 47 #endif // COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | 47 #endif // COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ |
| OLD | NEW |