| 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 <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" | 11 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" |
| 11 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" | 12 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" |
| 12 #include "third_party/WebKit/public/platform/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 class WebCredential; | 16 class WebCredential; |
| 16 class WebFrame; | 17 class WebFrame; |
| 17 class WebURL; | 18 class WebURL; |
| 18 } | 19 } |
| 19 | 20 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 // blink::WebCredentialManager: | 32 // blink::WebCredentialManager: |
| 32 void dispatchStore(const blink::WebCredential& credential, | 33 void dispatchStore(const blink::WebCredential& credential, |
| 33 NotificationCallbacks* callbacks) override; | 34 NotificationCallbacks* callbacks) override; |
| 34 void dispatchRequireUserMediation(NotificationCallbacks* callbacks) override; | 35 void dispatchRequireUserMediation(NotificationCallbacks* callbacks) override; |
| 35 void dispatchGet(bool zero_click_only, | 36 void dispatchGet(bool zero_click_only, |
| 36 bool include_passwords, | 37 bool include_passwords, |
| 37 const blink::WebVector<blink::WebURL>& federations, | 38 const blink::WebVector<blink::WebURL>& federations, |
| 38 RequestCallbacks* callbacks) override; | 39 RequestCallbacks* callbacks) override; |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 scoped_ptr<blink::WebCredential> credential_; | 42 std::unique_ptr<blink::WebCredential> credential_; |
| 42 blink::WebCredentialManagerError error_; | 43 blink::WebCredentialManagerError error_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient); | 45 DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace test_runner | 48 } // namespace test_runner |
| 48 | 49 |
| 49 #endif // COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | 50 #endif // COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ |
| OLD | NEW |