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> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" | 11 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" |
12 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" | 12 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" |
13 #include "third_party/WebKit/public/platform/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 class WebCredential; | 16 class WebCredential; |
17 class WebFrame; | |
18 class WebURL; | 17 class WebURL; |
19 } | 18 } |
20 | 19 |
21 namespace test_runner { | 20 namespace test_runner { |
22 | 21 |
23 class MockCredentialManagerClient : public blink::WebCredentialManagerClient { | 22 class MockCredentialManagerClient : public blink::WebCredentialManagerClient { |
24 public: | 23 public: |
25 MockCredentialManagerClient(); | 24 MockCredentialManagerClient(); |
26 virtual ~MockCredentialManagerClient(); | 25 virtual ~MockCredentialManagerClient(); |
27 | 26 |
(...skipping 13 matching lines...) Expand all Loading... |
41 private: | 40 private: |
42 std::unique_ptr<blink::WebCredential> credential_; | 41 std::unique_ptr<blink::WebCredential> credential_; |
43 blink::WebCredentialManagerError error_; | 42 blink::WebCredentialManagerError error_; |
44 | 43 |
45 DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient); | 44 DISALLOW_COPY_AND_ASSIGN(MockCredentialManagerClient); |
46 }; | 45 }; |
47 | 46 |
48 } // namespace test_runner | 47 } // namespace test_runner |
49 | 48 |
50 #endif // COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ | 49 #endif // COMPONENTS_TEST_RUNNER_MOCK_CREDENTIAL_MANAGER_CLIENT_H_ |
OLD | NEW |