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 #include "components/password_manager/content/renderer/credential_manager_client
.h" | 5 #include "components/password_manager/content/renderer/credential_manager_client
.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <tuple> | 10 #include <tuple> |
11 | 11 |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "content/public/renderer/render_frame.h" | 15 #include "content/public/renderer/render_frame.h" |
16 #include "content/public/renderer/render_view.h" | 16 #include "content/public/renderer/render_view.h" |
17 #include "content/public/test/render_view_test.h" | 17 #include "content/public/test/render_view_test.h" |
18 #include "mojo/public/cpp/bindings/binding_set.h" | 18 #include "mojo/public/cpp/bindings/binding_set.h" |
19 #include "services/shell/public/cpp/interface_provider.h" | 19 #include "services/service_manager/public/cpp/interface_provider.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "third_party/WebKit/public/platform/WebCredential.h" | 21 #include "third_party/WebKit/public/platform/WebCredential.h" |
22 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" | 22 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" |
23 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" | 23 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" |
24 #include "third_party/WebKit/public/platform/WebPasswordCredential.h" | 24 #include "third_party/WebKit/public/platform/WebPasswordCredential.h" |
25 | 25 |
26 namespace password_manager { | 26 namespace password_manager { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 EXPECT_FALSE(callback_succeeded()); | 241 EXPECT_FALSE(callback_succeeded()); |
242 EXPECT_TRUE(callback_errored()); | 242 EXPECT_TRUE(callback_errored()); |
243 EXPECT_FALSE(credential_); | 243 EXPECT_FALSE(credential_); |
244 EXPECT_EQ(blink::WebCredentialManagerError:: | 244 EXPECT_EQ(blink::WebCredentialManagerError:: |
245 WebCredentialManagerPasswordStoreUnavailableError, | 245 WebCredentialManagerPasswordStoreUnavailableError, |
246 error_); | 246 error_); |
247 } | 247 } |
248 | 248 |
249 } // namespace password_manager | 249 } // namespace password_manager |
OLD | NEW |